From 0262f2bc6158e36aa2511927ac040cb915e0409f Mon Sep 17 00:00:00 2001 From: gabrielkerekes Date: Wed, 29 Jul 2020 14:00:42 +0200 Subject: [PATCH] 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 f1b6056edb77002554a54c9c84815408921a91d6) --- core/src/apps/cardano/layout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/apps/cardano/layout.py b/core/src/apps/cardano/layout.py index 65a4033b06..cc1160aff3 100644 --- a/core/src/apps/cardano/layout.py +++ b/core/src/apps/cardano/layout.py @@ -202,7 +202,7 @@ async def show_warning_address_foreign_staking_key( address_n_to_str(staking_account_path), ) else: - staking_key_message = ("Staking key:", hexlify(staking_key_hash)) + staking_key_message = ("Staking key:", hexlify(staking_key_hash).decode()) await show_warning( ctx, staking_key_message, button="Ok",