spesmilo / electrum

Electrum Bitcoin Wallet
https://electrum.org
MIT License
7.49k stars 3.1k forks source link

Feature suggestion: Add encryption for public keys too #1601

Closed someone235 closed 8 years ago

someone235 commented 8 years ago

Let's say I want no one to see which addresses I posses, it would be nice if I'll have an option to encrypt the whole wallet, and not only its private keys.

ecdsa commented 8 years ago

this has already been discussed ad nauseam. If the whole wallet is encrypted, the password must be stored in memory during the whole session, which makes it vulnerable to malware. If it is a separate password, there will be a large fraction of users who will use the same password for the wallet file and for their private keys/seed, or even no password at all for their seed.

ecdsa commented 8 years ago

btw, I am simply following the recommendations of Bitcoin Core on this.

someone235 commented 8 years ago

Can you please reference me to a discussion about this? I don't really get why it's bad that some users will use the same password for the encryption of the private and public key.

ecdsa commented 8 years ago

It's bad because the password has to stay in memory for a long time, which makes it much easier for other processes to read it.

People have requested this a few times here on github, just search though past issues. In the end, I wrote a FAQ item in order to have less of them: http://docs.electrum.org/en/latest/faq.html#why-can-i-open-the-wallet-without-entering-my-password

Let me know if you have any suggestion to improve the FAQ or to make this info more visible.