Bitcoin Forum
November 09, 2024, 04:05:20 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: My bitcoin wallet address - Mine forever?  (Read 6668 times)
Grantmo (OP)
Newbie
*
Offline Offline

Activity: 29
Merit: 0



View Profile
May 07, 2013, 09:06:11 PM
 #1

I have downloaded the bitcoin client and the client has synced with the network.  I have made a few transactions with my wallet, both inbound and outbound.  I have also encrypted my wallet with a password. I have also backed up my wallet, locally, and also emailed it to my gmail account.  Two questions...

1. will the wallet address that I have used in the past continue to be mine forever? Or will it change after X number of transactions?

2. If I backed up my wallet 2 months ago, then made several more transactions after the backup, then my PC crashed, then restored from a 2 month old backup, would my restored wallet be 100% exactly the same as the one that crashed? Would I have the transactions that occurred after the backup?

Birdy
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250



View Profile
May 07, 2013, 10:13:32 PM
 #2

I have downloaded the bitcoin client and the client has synced with the network.  I have made a few transactions with my wallet, both inbound and outbound.  I have also encrypted my wallet with a password. I have also backed up my wallet, locally, and also emailed it to my gmail account.  Two questions...

1. will the wallet address that I have used in the past continue to be mine forever? Or will it change after X number of transactions?

2. If I backed up my wallet 2 months ago, then made several more transactions after the backup, then my PC crashed, then restored from a 2 month old backup, would my restored wallet be 100% exactly the same as the one that crashed? Would I have the transactions that occurred after the backup?



1. Some wallets create new adresses every time you create a transaction. But old adresses are reusable (Note: This is only true for local wallets! Some websites give you other adresses every time!).
When you create a backup of your wallet, you backup the key to the adresses, so it will work only for adresses you have at that time.
Every coin send to this adress is aviable, if you have the key. It doesn't matter when it was sent.

But attention: When you have 2 BTC on your wallet and you send 1 BTC to somewhere, all wallets will send the whole 2 BTC and some (like the bitcoin qt client) will create a new adress for the 1 BTC change (-> you need a new backup or send this to one of the other adresses)!
This is kinda like actual banknotes/coins, you have them in the value that is sent to you and you need to spent it all+receive change back.
acoindr
Legendary
*
Offline Offline

Activity: 1050
Merit: 1002


View Profile
May 07, 2013, 11:05:27 PM
 #3

I have downloaded the bitcoin client and the client has synced with the network.  I have made a few transactions with my wallet, both inbound and outbound.  I have also encrypted my wallet with a password. I have also backed up my wallet, locally, and also emailed it to my gmail account.  Two questions...

1. will the wallet address that I have used in the past continue to be mine forever? Or will it change after X number of transactions?

2. If I backed up my wallet 2 months ago, then made several more transactions after the backup, then my PC crashed, then restored from a 2 month old backup, would my restored wallet be 100% exactly the same as the one that crashed? Would I have the transactions that occurred after the backup?

Your first question is tricky to answer, because wallet software isn't what core Bitcoin is.

Understand that Bitcoin works based on public/private key pairs that are cryptographically linked. You start with a private key which is a 256 bit number - a really really big number, so big in fact the chance anyone else randomly picks your same number is infinitesimally small even if they make thousands of guesses per second for years. The private key is what gives permission to spend/send bitcoins and only you know it; so if you lose it you lose that ability. So the answer to your first question is yes, any address you generate is yours forever as long as only you know the private key.

However, the Bitcoin wallet software you use generates new addresses for some transactions and when you click to generate new addresses. These addresses are taken from a key pool (containing 100 keys by default) so if you make a backup which knows all of the addresses in your key pool, but then do 150 sending transactions, for example, your wallet software will replenish the key pool back to 100 with some keys your backup doesn't know about. It will use the oldest addresses first, but if you ever receive coins to one of the addresses not in your backup and your computer crashes then you lose those coins. That's why it's good to refresh your backups periodically depending on your usage patterns. Here is backup advice from Gavin:

Backup every 30 sendtoaddress or generatenewaddress and you'll be fine-- you should always have at least 3 backup copies of all your keys.

If you're running a very busy service so backing up every 30 is too often, then run with -keypool=1000 and backup at least every 300 sends/generates. ...

You might check out that thread on the subject anyway if interested as it may be cool to read a thread Satoshi actually participated in Wink
Grantmo (OP)
Newbie
*
Offline Offline

Activity: 29
Merit: 0



View Profile
May 07, 2013, 11:17:41 PM
 #4

Thank you both for the info, very helpful. 
HeroC
Legendary
*
Offline Offline

Activity: 858
Merit: 1000



View Profile
May 09, 2013, 09:33:33 PM
 #5

1. Yes, unless you give someone your private-key.  Then they can use your address.

2. Will be the same, just wait for the blockchain to update on your computer.
cp1
Hero Member
*****
Offline Offline

Activity: 616
Merit: 500


Stop using branwallets


View Profile
May 09, 2013, 11:23:55 PM
 #6

Your wallet is actually made up of many addresses.  So you need to differentiate between "wallet" and "address".  Each time you do a transaction your wallet can generate a new address and send your remaining bitcoins to that.  So your wallet will grow as it adds more addresses and it is possible that an old backup won't have all the addresses that you have your coins at.

Bitcoin-qt may have an option to keep reusing the same address.  Then you won't have to worry about that.  I use electrum and it has that option, it's nice to have.

Guide to armory offline install on USB key:  https://bitcointalk.org/index.php?topic=241730.0
Abdussamad
Legendary
*
Offline Offline

Activity: 3682
Merit: 1580



View Profile
May 10, 2013, 01:23:22 AM
 #7

1. Yes, unless you give someone your private-key.  Then they can use your address.

2. Will be the same, just wait for the blockchain to update on your computer.

Your answer to number 2 is wrong! Please don't answer unless you know what you are talking about!

@OP: If bitcoin-qt is your bitcoin client you need to take regular backups. Old backups won't restore your wallet 100%. The reasons are as follows:

a) Change addresses as Birdy has explained above.
b) New addresses that you generate. I think bitcoin-qt also generates new addresses itself from time to time.

The accepted wisdom seems to be that you backup your bitcoin-qt wallet every 100 transactions.

If you want a wallet that you can restore easily I suggest switching to a client with a deterministic wallet. Something like electrum (electrum.org).
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!