Bitcoin Forum

Other => Beginners & Help => Topic started by: HairyMaclairy on December 17, 2013, 09:38:29 PM



Title: Why do I need my wallet DAT file if I know my password
Post by: HairyMaclairy on December 17, 2013, 09:38:29 PM
Please explain it to me like I am 5. 

I know my password (Bitcoin QT) and address.  So what does my wallet DAT contain that cannot be derived from those two pieces of information? 

Is it because my private key is not related to my password? The password just allows access to the wallet DAT file which contains the private key? 

And if that is correct then a hacker could still know my password but not be able to spend my coins without also having access to the wallet DAT file.   Is that right ?


Title: Re: Why do I need my wallet DAT file if I know my password
Post by: nobbynobbynoob on December 17, 2013, 09:40:52 PM
The Bitcoin-Qt encryption password is to unencrypt the wallet.dat; it is not a deterministic password to extract your wallet addresses directly.


Title: Re: Why do I need my wallet DAT file if I know my password
Post by: jongameson on December 17, 2013, 09:41:55 PM
So what does my wallet DAT contain that cannot be derived from those two pieces of information? 

Your private key

Quote
Is it because my private key is not related to my password? The password just allows access to the wallet DAT file which contains the private key?  And if that is correct then a hacker could still know my password but not be able to spend my coins without also having access to the wallet DAT file.   Is that right ?

Yes and Yes.



Title: Re: Why do I need my wallet DAT file if I know my password
Post by: HairyMaclairy on December 17, 2013, 09:49:12 PM
Thanks guys.

So a paper wallet has the private key printed on it?

Does the Bitcojn QT client have the ability to show the private key?


Title: Re: Why do I need my wallet DAT file if I know my password
Post by: Colin Miner on December 17, 2013, 09:55:30 PM
Quote
Does the Bitcojn QT client have the ability to show the private key?
Yes, you can show the private key on screen to cop/paste (after unlocking the wallet with your password).

In the console:

Code:
walletpassphrase "your walletpassphrase goes here" 660
dumpprivkey [your public key appears here]
walletlock


Title: Re: Why do I need my wallet DAT file if I know my password
Post by: nobbynobbynoob on December 17, 2013, 09:56:29 PM
Thanks guys.

So a paper wallet has the private key printed on it?

Yes, so you would need to keep it out of others' eyesight.

Quote
Does the Bitcojn QT client have the ability to show the private key?

Yes, but extracting them is not obvious. You need to open the Debug window accessible from the Help menu and type:

Code:
walletpassphrase <passphrase, must be enclosed in quotes " " if it contains spaces> <duration to decrypt wallet, in seconds>
dumpprivkey <Bitcoin address>


Title: Re: Why do I need my wallet DAT file if I know my password
Post by: HairyMaclairy on December 17, 2013, 10:37:48 PM
Nice thanks all !