Author

Topic: How can I find/extract my priavte key from my Bitcoin core client/ wallet.dat? (Read 822 times)

newbie
Activity: 43
Merit: 0
donator
Activity: 1218
Merit: 1079
Gerald Davis
Possibly try looking at the contents of my wallet.dat file on an offline PC just for curiosity.

Then you will need to bite the bullet and install pywallet. 
newbie
Activity: 43
Merit: 0
Thanks for that warning Danny..

Think I will just wait tight for multi sig services in the mean time just make sure I have backups of my wallet.dat.. Possibly try looking at the contents of my wallet.dat file on an offline PC just for curiosity.
legendary
Activity: 3416
Merit: 4658
is there any advice that can be offered to prevent me from messing up?

Yes.

1. Create a backup copy of your wallet.dat before you start messing with things.  That way if you damage anything, you can recover the wallet.dat.

2. Do not use written or printed copies of private keys as a backups for a Bitcoin-Qt (or Bitcoin Core) wallet that you are using.  The wallet regularly generates new private keys without telling you.  If all you have is the written (or printed) private keys, then you may not have access to your bitcoins (if the wallet has moved that access to a new set of private keys since the time when you wrote, or printed, them).
newbie
Activity: 43
Merit: 0
hmm pywallet looks complicated to install..
newbie
Activity: 43
Merit: 0
Hmm interesting think I might just keep away... All I wanted to do is write down or print the private keys so that I have them in physical format as well as in digital format. Of course I would try my up most to keep the private keys hidden from view.

If I do decide to try and view the private keys using this software, is there any advice that can be offered to prevent me from messing up?
donator
Activity: 1218
Merit: 1079
Gerald Davis
Ok, this is really intriguing to me!! Feel like im making some progress in understanding just the basic characteristics of Bitcoin.

Is there some kind of reader that can read the contents of the wallet.dat file so I can just view the private keys im using?

There is a tool called pywallet which can parse the wallet file, display data, dump keys, etc.  You can find it by searching the forum.
newbie
Activity: 43
Merit: 0
Ok, this is really intriguing to me!! Feel like im making some progress in understanding just the basic characteristics of Bitcoin.

Is there some kind of reader that can read the contents of the wallet.dat file so I can just view the private keys im using?
donator
Activity: 1218
Merit: 1079
Gerald Davis
Hey I'm using the most recent Bitcoin core client and I was wondering if I would be able to extract or just view the private key either from the client software or the wallet.dat? Any help appreciated.

Unless you have a specific purpose and in mind and fully understand the internal working of Bitcoin you shouldn't.  Just use the wallet, it will manage your keys for you.  Make a backup of your wallet.dat file.  That will backup all your private keys (plus the next 100 you are going to use in the future).  Messing around with raw private keys is a good way to end up losing funds if you don't know what you are doing.

Experimenting is one thing but for production use let the wallet "do its job". Smiley
copper member
Activity: 1498
Merit: 1520
No I dont escrow anymore.
Thanks for your help! Thing is I'm generating a new address for every transaction for will the private key be the same for all of these?

No, a new addresse comes with a new private key.

Also once I get the private key will everything remain the same in the client?

Yes, you just get a copy of the private key. Well if you lose that you might notice that your "available" amount of BTC is deminishing, so take care of the key Wink

Can I use it as normal?

Yes, you can use the wallet as you used it before.


In case you want to backup, you should not backup the private keys, but the wallet.dat.
newbie
Activity: 43
Merit: 0
Thanks for your help! Thing is I'm generating a new address for every transaction for will the private key be the same for all of these? Also once I get the private key will everything remain the same in the client? Can I use it as normal?
copper member
Activity: 1498
Merit: 1520
No I dont escrow anymore.
start bitcoin core -> help -> debug window -> console:

- help to see the list of commands and how they work (or see here: https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list )
- walletpassphrase "password" 120 to unlock your wallet, 120 is the timeout in seconds befor it locks inself again. 2 Minutes should be enough Wink
- dumpprivkey "bitcoinaddress" to get a private key to a given address
newbie
Activity: 43
Merit: 0
Hey I'm using the most recent Bitcoin core client and I was wondering if I would be able to extract or just view the private key either from the client software or the wallet.dat? Any help appreciated.
Jump to: