Обновить converter.py
This commit is contained in:
parent
d3fb278caf
commit
2f7c52ef7d
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user