Bitcoin Forum
May 01, 2024, 09:56:02 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Restoring addresses from old backup  (Read 852 times)
NeoCortX (OP)
Newbie
*
Offline Offline

Activity: 22
Merit: 0



View Profile WWW
December 20, 2012, 02:38:21 AM
 #1

As I understand, and to my experience, in Armory you can take a single backup, and the program will be able to regenerate all addresses in a wallet based upon this one backup. It means that you can take one backup when you create the wallet, and that's all you need. It will use the information from the first address as a seed to generate the next, so you don't risk loosing the other private keys.

Is there something similar implemented in the Qt client? Or do I have to back it up every time I create a new address?

What information is used as seed when I generate a new address in the Qt client?
1714600562
Hero Member
*
Offline Offline

Posts: 1714600562

View Profile Personal Message (Offline)

Ignore
1714600562
Reply with quote  #2

1714600562
Report to moderator
I HATE TABLES I HATE TABLES I HA(╯°□°)╯︵ ┻━┻ TABLES I HATE TABLES I HATE TABLES
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Revalin
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500


165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g


View Profile
December 20, 2012, 02:48:52 AM
 #2

The Qt client does not use deterministic addresses.  It pre-generates a pool of keys and uses them, so you don't have to back up after each new address, but you DO need to back up: a) after every 100 operations which use an address from the pool (new address, or transactions that send change to a new address), b) after you encrypt your wallet (the old key pool is flushed).

      War is God's way of teaching Americans geography.  --Ambrose Bierce
Bitcoin is the Devil's way of teaching geeks economics.  --Revalin 165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4612



View Profile
December 20, 2012, 02:50:59 AM
 #3

A completely random seed is used for generating addresses in the Bitcoin-Qt reference client.

However, by default it generates (and keeps hidden from you) 100 additional addresses.  When you request a new address (or the client needs a new address for "change" in a transaction), the client pulls from this pool of 100 addresses, creating a new address to add to the pool.

This means that you only need to create a backup of the wallet every 100 transactions or so (although more frequent backups wouldn't necessarily be a bad idea).

Note that if you have an un-encrypted wallet, the addresses in this pool are discarded and new ones are generated upon encryption of the wallet.  This means that the addresses in the pool from a pre-encryption backup are useless for recovering coins from transactions after the encryption.  In other words, if you encrypt your wallet it would be a good idea to immediately back it up.
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4612



View Profile
December 20, 2012, 02:53:12 AM
 #4

Note that it is possible to increase the size of this pool if you wish.
etotheipi
Legendary
*
expert
Offline Offline

Activity: 1428
Merit: 1093


Core Armory Developer


View Profile WWW
December 20, 2012, 05:24:49 AM
 #5

As I understand, and to my experience, in Armory you can take a single backup, and the program will be able to regenerate all addresses in a wallet based upon this one backup. It means that you can take one backup when you create the wallet, and that's all you need. It will use the information from the first address as a seed to generate the next, so you don't risk loosing the other private keys.

Is there something similar implemented in the Qt client? Or do I have to back it up every time I create a new address?

What information is used as seed when I generate a new address in the Qt client?

BIP 32 was developed by the Bitcoin-Qt devs, and will hopefully make it's way into Bitcoin-Qt in 0.8.  But it's looking like it'll be a later release.  This will provide multi-chain deterministic addresses (create multiple wallets built from one seed).  I plan to implement the same thing in Armory so it will be compatible.

But at the moment, you are correct:  this cannot be done in Bitcoin-Qt, and it's a real shame because requiring-regular-backups-at-the-cost-of-losing-your-money is a real problem in the world of end-user software.  It's never worth dealing with backups until it's too late, i.e. "ehhh, I'll set it up next week."  Plus, that means that your backup solution can't be extremely secure, because it still needs to be convenient since you're doing it multiple times.  At least with a deterministic wallet, you can backup once, drive to the bank and put it in your safe-deposit box.  Once.

Personally, I think this is the number one reason to use these alt clients, because the ability to backup once, forever is such a powerful feature.



Founder and CEO of Armory Technologies, Inc.
Armory Bitcoin Wallet: Bringing cold storage to the average user!
Only use Armory software signed by the Armory Offline Signing Key (0x98832223)

Please donate to the Armory project by clicking here!    (or donate directly via 1QBDLYTDFHHZAABYSKGKPWKLSXZWCCJQBX -- yes, it's a real address!)
NeoCortX (OP)
Newbie
*
Offline Offline

Activity: 22
Merit: 0



View Profile WWW
December 21, 2012, 02:03:07 AM
 #6

Thanks for replies.

I think at least you should get up an alert in Qt, saying that "you've now added some new addresses, and you should take a new backup."

I've taken backup now because of this, and my computer didn't crash before I got it done. Have to say I like armory better when it comes to backup and stuff like that.
Herbert
Hero Member
*****
Offline Offline

Activity: 488
Merit: 500



View Profile WWW
December 21, 2012, 12:00:16 PM
 #7

Is there some way to tell with the standard client / rpc interface if a new backup is necessary, i.e. when the keypool was exhausted?

www.bitcoinmonitor.net - Free payment notification via email, newsfeed, xpmm/jabber, url callback and full API access!
Send SMS with www.txt4coins.net! No registration, pay-per-use, full API access, bulk messages - All inclusive!
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!