Обновить py/converter.py
This commit is contained in:
parent
6275d00aa3
commit
2d41e42b40
@ -43,10 +43,10 @@ def p2h(data, keymode):
|
|||||||
|
|
||||||
def h2p(data, keymode):
|
def h2p(data, keymode):
|
||||||
if(keymode=="sk"):
|
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())
|
print(sk.to_pem().decode())
|
||||||
elif(keymode=="vk"):
|
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())
|
print(vk.to_pem().decode())
|
||||||
|
|
||||||
def seed2hkey(data, keymode):
|
def seed2hkey(data, keymode):
|
||||||
|
Loading…
Reference in New Issue
Block a user