Обновить py/converter.py
This commit is contained in:
parent
2d41e42b40
commit
09ed6a9476
@ -35,10 +35,10 @@ f.close()
|
|||||||
|
|
||||||
def p2h(data, keymode):
|
def p2h(data, keymode):
|
||||||
if(keymode=="sk"):
|
if(keymode=="sk"):
|
||||||
sk = SigningKey.from_pem(data.encode(), curve=SECP256k1)
|
sk = SigningKey.from_pem(data.encode())
|
||||||
print(sk.to_string().hex())
|
print(sk.to_string().hex())
|
||||||
elif(keymode=="vk"):
|
elif(keymode=="vk"):
|
||||||
vk = VerifyingKey.from_pem(data.encode(), curve=SECP256k1)
|
vk = VerifyingKey.from_pem(data.encode())
|
||||||
print(vk.to_string().hex())
|
print(vk.to_string().hex())
|
||||||
|
|
||||||
def h2p(data, keymode):
|
def h2p(data, keymode):
|
||||||
|
Loading…
Reference in New Issue
Block a user