1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-06-27 18:32:34 +00:00

Fix staking key hash message

When deriving an address with a foreign staking key Trezor would crash
due to forgotten `decode()` on hexlified staking key hash which was to
be displayed.

This wasn't discovered while testing because it weirdly would pass with
a `aaff00` string, but not with longer ones.

(cherry picked from commit f1b6056edb)
This commit is contained in:
gabrielkerekes 2020-07-29 14:00:42 +02:00 committed by Pavol Rusnak
parent 4eb5b927c0
commit 0262f2bc61
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -202,7 +202,7 @@ async def show_warning_address_foreign_staking_key(
address_n_to_str(staking_account_path), address_n_to_str(staking_account_path),
) )
else: else:
staking_key_message = ("Staking key:", hexlify(staking_key_hash)) staking_key_message = ("Staking key:", hexlify(staking_key_hash).decode())
await show_warning( await show_warning(
ctx, staking_key_message, button="Ok", ctx, staking_key_message, button="Ok",