Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: jon_smark on August 20, 2012, 01:33:09 PM



Title: Is wallet encryption a one way street?
Post by: jon_smark on August 20, 2012, 01:33:09 PM
Looking at the original Bitcoin client API (https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list) I noticed one thing: once a wallet is encrypted with encryptwallet, there does not seem to be an API call that unencrypts the wallet.  Sure, you can change the passphrase with walletpassphrasechange, but the encryption remains.  Am I missing something, or is encryptwallet really a one-way street as far as the API is concerned?  (One could of course restore an unencrypted wallet from a backup, but that's not in discussion here).


Title: Re: Is wallet encryption a one way street?
Post by: cbeast on August 20, 2012, 01:38:54 PM
You can't unencrypt a wallet, but you could move funds to an unencrypted wallet. Encryption is pretty important. I can't imagine why you would not want encryption for a personal wallet like the Original Bitcoin client.


Title: Re: Is wallet encryption a one way street?
Post by: jon_smark on August 20, 2012, 04:58:34 PM
You can't unencrypt a wallet, but you could move funds to an unencrypted wallet. Encryption is pretty important. I can't imagine why you would not want encryption for a personal wallet like the Original Bitcoin client.

Thanks for the reply.  However, note that my question did not imply any opinion regarding wallet encryption.  I was merely wondering if there was an API call missing from the wiki...


Title: Re: Is wallet encryption a one way street?
Post by: cbeast on August 20, 2012, 07:29:20 PM
No problem. Don't worry about the opinion, the first one is free.  ;D


Title: Re: Is wallet encryption a one way street?
Post by: NRF on August 20, 2012, 08:55:42 PM
Since you are getting unsolicited opinions  ;D .

I have yet to be convinced about wallet encryption, there are a few scenarios that can corrupt your wallet that I cannot seem to find a way back from (i.e. bitcoin's lost).

I have make use of the "bitcoind dumpprivkey" whenever I create a new key just to be sure.