diff --git a/src/apps/monero/signing/step_01_init_transaction.py b/src/apps/monero/signing/step_01_init_transaction.py index 5b3ea4dd50..962aaec708 100644 --- a/src/apps/monero/signing/step_01_init_transaction.py +++ b/src/apps/monero/signing/step_01_init_transaction.py @@ -353,6 +353,9 @@ def _get_key_for_payment_id_encryption(destinations: list, change_addr=None): addr = dest.addr count += 1 + if count == 0 and change_addr: + return change_addr.view_public_key + if addr.view_public_key == crypto.NULL_KEY_ENC: raise ValueError("Invalid key")