Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

Commit

Permalink
xmr: fixes sending to self with stealth payment ID
Browse files Browse the repository at this point in the history
  • Loading branch information
ph4r05 committed Oct 27, 2018
1 parent 88fbf8e commit d32dde8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/apps/monero/signing/step_01_init_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit d32dde8

Please sign in to comment.