mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-17 01:52:02 +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
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import binascii
|
import binascii
|
||||||
from trezorlib import ed25519raw
|
from trezorlib import _ed25519
|
||||||
|
|
||||||
|
|
||||||
def hex_to_c(s):
|
def hex_to_c(s):
|
||||||
@ -14,7 +14,7 @@ for c in "ABCDEFGHI":
|
|||||||
seckey_hex = binascii.hexlify(seckey).decode()
|
seckey_hex = binascii.hexlify(seckey).decode()
|
||||||
print("seckey", seckey_hex)
|
print("seckey", seckey_hex)
|
||||||
print(" ", hex_to_c(seckey_hex))
|
print(" ", hex_to_c(seckey_hex))
|
||||||
pubkey = ed25519raw.publickey(seckey)
|
pubkey = _ed25519.publickey_unsafe(seckey)
|
||||||
pubkey_hex = binascii.hexlify(pubkey).decode()
|
pubkey_hex = binascii.hexlify(pubkey).decode()
|
||||||
print("pubkey", pubkey_hex)
|
print("pubkey", pubkey_hex)
|
||||||
print(" ", hex_to_c(pubkey_hex))
|
print(" ", hex_to_c(pubkey_hex))
|
||||||
|
Loading…
Reference in New Issue
Block a user