Author

Topic: getnewaddress encrypts priv-key? (Read 998 times)

member
Activity: 84
Merit: 14
February 27, 2013, 03:57:41 AM
#3
ah yes, thanks Jouke. Smiley
sr. member
Activity: 426
Merit: 250
February 27, 2013, 03:34:39 AM
#2
It pre-makes 100 addresses in your wallet and everytime you decrypt your wallet is automatically keeps that number of unused addresses up to date. When you ask for a new address it gives you one of those premade unused address.
member
Activity: 84
Merit: 14
February 27, 2013, 03:28:51 AM
#1
I am running bitcoind in linux. I have encrypted the wallet using 'walletpassphrase'. I then ran 'getnewaddress'. This generated a new keypair, and showed me the new address (call it '1address') in bash.

But getnewaddress never asked me for my wallet's encryption key though.

I then run 'dumpprivkey 1address'. And bash tells me it can't recover the priv-key.

Now, i decrypt the wallet using 'walletpassphrase'. I try 'dumpprivkey 1addressblahblah...' again and the priv-key comes up in bash.

My question is, How come the client knew the encryption key in such a way as to automatically encrypt the newly generated keypair's priv-key?
Jump to: