Bitcoin Forum
April 25, 2024, 06:57:05 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Unencrypted backups (just curious)  (Read 993 times)
blockbet.net (OP)
Member
**
Offline Offline

Activity: 112
Merit: 10


Admin at blockbet.net


View Profile WWW
March 26, 2013, 02:05:40 PM
 #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.

Bitcoin Sports Betting online at www.blockbet.net, featuring NBA, NHL, UFC, football (soccer) and international competitions. Fast payouts directly to your wallet, great win odds, no need to register or deposit. Bet in just a few clicks now!
1714028225
Hero Member
*
Offline Offline

Posts: 1714028225

View Profile Personal Message (Offline)

Ignore
1714028225
Reply with quote  #2

1714028225
Report to moderator
The trust scores you see are subjective; they will change depending on who you have in your trust list.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714028225
Hero Member
*
Offline Offline

Posts: 1714028225

View Profile Personal Message (Offline)

Ignore
1714028225
Reply with quote  #2

1714028225
Report to moderator
1714028225
Hero Member
*
Offline Offline

Posts: 1714028225

View Profile Personal Message (Offline)

Ignore
1714028225
Reply with quote  #2

1714028225
Report to moderator
CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1075


Ian Knowles - CIYAM Lead Developer


View Profile WWW
March 26, 2013, 02:15:12 PM
 #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).

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
blockbet.net (OP)
Member
**
Offline Offline

Activity: 112
Merit: 10


Admin at blockbet.net


View Profile WWW
March 26, 2013, 03:05:53 PM
 #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.

Bitcoin Sports Betting online at www.blockbet.net, featuring NBA, NHL, UFC, football (soccer) and international competitions. Fast payouts directly to your wallet, great win odds, no need to register or deposit. Bet in just a few clicks now!
CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1075


Ian Knowles - CIYAM Lead Developer


View Profile WWW
March 26, 2013, 03:38:12 PM
 #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!

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
zeroday
Donator
Hero Member
*
Offline Offline

Activity: 784
Merit: 1000



View Profile
March 26, 2013, 03:58:36 PM
 #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?
CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1075


Ian Knowles - CIYAM Lead Developer


View Profile WWW
March 26, 2013, 03:59:40 PM
 #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).

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
zeroday
Donator
Hero Member
*
Offline Offline

Activity: 784
Merit: 1000



View Profile
March 26, 2013, 04:04:10 PM
 #7

Did anyone have success extracting private keys from encrypted wallet?
CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1075


Ian Knowles - CIYAM Lead Developer


View Profile WWW
March 26, 2013, 04:06:54 PM
 #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).

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
Dabs
Legendary
*
Offline Offline

Activity: 3416
Merit: 1912


The Concierge of Crypto


View Profile
March 27, 2013, 03:30:56 AM
 #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

CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1075


Ian Knowles - CIYAM Lead Developer


View Profile WWW
March 27, 2013, 03:38:59 AM
 #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)?

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
Dabs
Legendary
*
Offline Offline

Activity: 3416
Merit: 1912


The Concierge of Crypto


View Profile
March 27, 2013, 03:47:03 AM
 #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.

CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1075


Ian Knowles - CIYAM Lead Developer


View Profile WWW
March 27, 2013, 03:54:45 AM
 #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).

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!