Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempt to use empty imported addresses as change
Previously when spending coins on imported-key wallets, the change address would always be an address from one of the inputs. This address reuse is pretty bad for privacy because it leaks which output is change. This commit attempts to find unused imported addresses, and if there are any then use them as change addresses. The practical use-case I considered was the situation when using the Electrum android app to do a cash-in-person trade. Some people might want to bring only one of their UTXOs to the meetup for safety. This commit allows them to import that one UTXO plus an unused change address, allowing them to create a transaction without address reuse.
- Loading branch information