Обновить converter.py

This commit is contained in:
artemuhi 2024-03-25 23:26:26 +03:00
parent d3fb278caf
commit 2f7c52ef7d

View File

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