mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 15:38:11 +00:00
chore(core): fix import in key generator
This commit is contained in:
parent
0ba966b979
commit
7a09c21bf5
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import binascii
|
||||
from trezorlib import ed25519raw
|
||||
from trezorlib import _ed25519
|
||||
|
||||
|
||||
def hex_to_c(s):
|
||||
@ -14,7 +14,7 @@ for c in "ABCDEFGHI":
|
||||
seckey_hex = binascii.hexlify(seckey).decode()
|
||||
print("seckey", seckey_hex)
|
||||
print(" ", hex_to_c(seckey_hex))
|
||||
pubkey = ed25519raw.publickey(seckey)
|
||||
pubkey = _ed25519.publickey_unsafe(seckey)
|
||||
pubkey_hex = binascii.hexlify(pubkey).decode()
|
||||
print("pubkey", pubkey_hex)
|
||||
print(" ", hex_to_c(pubkey_hex))
|
||||
|
Loading…
Reference in New Issue
Block a user