Обновить converter.py

This commit is contained in:
artemuhi 2024-03-25 23:29:15 +03:00
parent 2f7c52ef7d
commit dd8430f5c8

View File

@ -44,7 +44,7 @@ def p2h(data, keymode):
def h2p(data, keymode):
if(keymode=="sk"):
sk = SigningKey.from_string(b16decode(data.upper().encode()), curve=SECP256k1)
print(vk.to_pem().decode())
print(sk.to_pem().decode())
elif(keymode=="vk"):
vk = VerifyingKey.from_string(b16decode(data.upper().encode()), curve=SECP256k1)
print(vk.to_pem().decode())