Author

Topic: What's in my wallet? (Read 684 times)

newbie
Activity: 13
Merit: 0
March 27, 2012, 11:38:52 AM
#6
Very informational post
newbie
Activity: 48
Merit: 0
March 27, 2012, 09:48:48 AM
#5
OK. It's clear now.

I saw as your public key being like your bank account number and everyone can see from the block chain how much BTC there is in it, with the private key, as you say, enabling you to sign and transfer BTC to some other account.

I'm liking it. It's like capitalism in its purest form. Satoshi founded the 'company' with an idea then allowed anyone to become 'shareholders' or early investors (not just privileged 'accredited investors' in contrast to, say, Google) meaning they all have the incentive for it to be a success.
donator
Activity: 1218
Merit: 1079
Gerald Davis
March 27, 2012, 09:36:32 AM
#4
No.  The blockchain is the transaction log.

A way to think of it is you don't have any coins.  The coins are in the blockchain.  Every single coin ever mined and every coin that will be mined is in the blockchain.  The block chain is a consensus on where the coins are currently located.

It is like a digital version of the giant rai stones.


The stones were used for currency but they were never moved.  The consensus of villagers determined who owned it.  When one entered a transaction involving the stone everyone was notified and the consensus was updated.  Bitcoin works the same way.

You use private keys to move coins.
Private key = proof of ownership
Private key = ability to sign a tx and move a coin to a new address (spending coins is just moving coins from buyer to seller)
No private key = no move, coins lost "forever".

There are methods of regenerating private keys.  The term is a "deterministic wallet".  With the secret seed you can recreate the entire wallet because the keys and their sequence is always the same from the same "seed".  No need to backup anything but the secret and backup could mean recording it offline like on a sheet of paper.  The default client (also called the satoshi client) is not determistic.  You will need to routinely backup your wallet as it contains your private keys.  The wallet.dat contains other "stuff" which improves efficiency of the client but the private keys are what is important.  Everything else can be regenerated if you have the private keys and access to the blockchain.
newbie
Activity: 48
Merit: 0
March 27, 2012, 09:32:06 AM
#3
So do you need the transaction log to recover your BTC?

I was thinking of if you had your own secret way of generating key pairs you could recover them that way.
legendary
Activity: 1288
Merit: 1227
Away on an extended break
March 27, 2012, 08:30:16 AM
#2
Wallet.dat only stores the private keys, the transaction log and the custom label that goes with it. The blockchain is stored in the blk0001.dat.
newbie
Activity: 48
Merit: 0
March 27, 2012, 06:48:59 AM
#1
Techy newb question.

Am I right in thinking that what matters in terms of what you need to back up/not lose is just the set of private keys that go with the public keys under which you have received BTC?

I know you need the block chain to know the amounts to work out how much you own but can you recover your BTC so long as you have those private keys?

What else is stored in wallet.dat apart from those keys and the blockchain up to your last transaction, if anything?
Jump to: