Обновить py/converter.py

This commit is contained in:
artemuhi 2024-03-23 14:37:44 +03:00
parent 6275d00aa3
commit 2d41e42b40

View File

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