I was just wondering if i have old wallet backups laying around on my computer or on a usb drive that someone was to gain access too, are they useless to them? is only the latest backup the one that works because i will have sent and received various different amounts since the older backups.
What would happen if they loaded up bitcoin core and used my old wallet.dat file? there could probably be coins there that my not have been sent, am i right?
no.
They would have full access to all of your coins, as long as the old backup is from the same wallet you're using right now.
The only thing that can prevent this, is password protecting your wallet. In this case the attacker will have to bruteforce your wallet.dat (wich is inprobable when using a long, random, password or passphrase)
Ok so lets say i had 3
BTC and i backed-up my wallet.dat. And then today i sent 1
BTC to a friend, and recieved 1.5
BTC the day after from another friend without backing up my wallet. I understand that the attacker after brute forcing my wallet.dat could take 2
BTC of the original 3
BTC but surly they couldnt have access to the 1.5
BTC as i did not back that up. Am i right or am i missing something?
Thanks for the reply
Well... Let's use your example:
1) you have the private key for an address holding 3
BTC in a wallet. You backup your wallet.dat
2) Today, you send 1
BTC to a friend. This transaction is signed with the private key in step 1. If there is change for this transaction, the default setting of bitcoin core is to generate a new private key/address and send the change to this address. The change can also be sent back to the address in step 1 if you modified the default behaviour
3) you receive 1.5
BTC to the address in step 1
4) your backed up wallet.dat gets stolen. It contains the private key from step 1, but not the private key for the change address generated in step 2. The attacker will have access to all coins, exept the change you sent yourself when sending 1
BTC to a friend...
Offcourse, there are a lot of variables... If you received funds in step 3 to a newly generated address, the private keys will not be in the backup in step 1, so the attacker will not have access to this funds.
Also, the way bitcoin core handles change can be modified, and how much change will be sent will depend on the inputs. If the address in step 1 received 300 deposits of 0.01, there won't be a lot of change sent to the change address in step 2. On the other hand, if there was only 1 input of 3 BTC, the original private key will be worthless, since all the coins will be sent to the change address