1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 22:38:08 +00:00

chore(core): fix import in key generator

This commit is contained in:
matejcik 2022-10-11 10:43:20 +02:00 committed by matejcik
parent 0ba966b979
commit 7a09c21bf5

View File

@ -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))