Author

Topic: Unencrypted backups (just curious) (Read 1006 times)

legendary
Activity: 1890
Merit: 1086
Ian Knowles - CIYAM Lead Developer
March 26, 2013, 10:54:45 PM
#12
The latest pywallet from jackjack allows you to input the passphrase. It also has a web interface but I just used the command line. Windows here.

Thanks and good to know (will be updating my version).
legendary
Activity: 3416
Merit: 1912
The Concierge of Crypto
March 26, 2013, 10:47:03 PM
#11
The latest pywallet from jackjack allows you to input the passphrase. It also has a web interface but I just used the command line. Windows here.
legendary
Activity: 1890
Merit: 1086
Ian Knowles - CIYAM Lead Developer
March 26, 2013, 10:38:59 PM
#10
6. run pywallet on it to get 100 keys from wallet.dat

So pywallet recognizes encrypted wallets and prompts you for a pass phrase (just want to be certain)?
legendary
Activity: 3416
Merit: 1912
The Concierge of Crypto
March 26, 2013, 10:30:56 PM
#9
I've tried the latest version of pywallet with an encrypted wallet. Got all the new keys.

What I did:
1. backup old wallet.dat, put into a rar file.
2. delete old wallet.
3. restart bitcoin-qt, let it generate a new wallet.
4. before even using the new wallet, encrypt it.
5. backup newly generated newly encrypted wallet.dat
6. run pywallet on it to get 100 keys from wallet.dat
legendary
Activity: 1890
Merit: 1086
Ian Knowles - CIYAM Lead Developer
March 26, 2013, 11:06:54 AM
#8
Did anyone have success extracting private keys from encrypted wallet?

Actually unless it has been updated to take a pass phrase to decrypt (with the correct code to do so) then I would think it would be of no help unfortunately (haven't had time to look at it so maybe others could comment).
donator
Activity: 784
Merit: 1000
March 26, 2013, 11:04:10 AM
#7
Did anyone have success extracting private keys from encrypted wallet?
legendary
Activity: 1890
Merit: 1086
Ian Knowles - CIYAM Lead Developer
March 26, 2013, 10:59:40 AM
#6
I don't think that the Satoshi client will let you do that but I think that tools such as pywallet could help with that (although I have not tried pywallet with an encrypted wallet so it may not work).
donator
Activity: 784
Merit: 1000
March 26, 2013, 10:58:36 AM
#5
Is there possibility to extract private keys from entire keypool in encrypted wallet in order to make offline paper backup? 
Suppose it's some command-line or json command with bitcooind. Can somebody explain?
legendary
Activity: 1890
Merit: 1086
Ian Knowles - CIYAM Lead Developer
March 26, 2013, 10:38:12 AM
#4
The old wallet *could* have something but because of *change* it may have nothing at all (hence the big warning).

Of course I would not advise you to "throw away" your old backup - just make sure you take a new one straight after encrypting!
member
Activity: 112
Merit: 10
Admin at blockbet.net
March 26, 2013, 10:05:53 AM
#3
Alright, makes sense, thanks for a extensive and clear answer! So I suppose the old unencrypted wallet isn't necessarily useless, as there may or may not be something left there, at least if it's fairly recent? Though I understand why the developers wanted to word it like that to avoid any misconceptions.
legendary
Activity: 1890
Merit: 1086
Ian Knowles - CIYAM Lead Developer
March 26, 2013, 09:15:12 AM
#2
All unused private keys in the key pool (by default 100) are replaced when you encrypt your wallet (in order to secure your future txs).

Thus any tx's you do *after* the encryption (other than deposits to addresses you have already used) will be using addresses that the old wallet has never seen so if you then tried to restore your wallet you could quite easily have lost *all* your BTC (as typically a tx sends change back to you via a new address).

So if your wallet balance was say 100 BTC (in one UTXO) and after encryption you made a single tx of 1 BTC then 99 BTC would be sent to a *change* address which the old wallet doesn't know (so if you tried to restore from your old backup you would have 0 BTC).
member
Activity: 112
Merit: 10
Admin at blockbet.net
March 26, 2013, 09:05:40 AM
#1
Hi guys, quick question just out of curiousity, no big deal...

I just noticed that when I encrypt my wallet on Bt-Qt, it gives a message saying that "for security reasons, previous unencrypted wallets will become useless" and I'm just curious about how that works technically. So if I load a previous, unencrypted wallet, how does the program or the network know that there exists an encrypted one?

Or maybe I didn't understand that statement correctly?

Thanks for reading.
Jump to: