Bitcoin Forum
November 16, 2024, 02:56:08 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How can I find/extract my priavte key from my Bitcoin core client/ wallet.dat?  (Read 837 times)
PetePete (OP)
Newbie
*
Offline Offline

Activity: 43
Merit: 0


View Profile
May 06, 2014, 04:38:37 PM
 #1

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.
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1540


No I dont escrow anymore.


View Profile
May 06, 2014, 05:00:54 PM
 #2

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

Im not really here, its just your imagination.
PetePete (OP)
Newbie
*
Offline Offline

Activity: 43
Merit: 0


View Profile
May 06, 2014, 05:06:20 PM
 #3

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?
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1540


No I dont escrow anymore.


View Profile
May 06, 2014, 05:21:48 PM
 #4

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.

Im not really here, its just your imagination.
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
May 06, 2014, 05:24:17 PM
 #5

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
PetePete (OP)
Newbie
*
Offline Offline

Activity: 43
Merit: 0


View Profile
May 06, 2014, 05:25:08 PM
 #6

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?
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
May 06, 2014, 05:27:55 PM
 #7

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.
PetePete (OP)
Newbie
*
Offline Offline

Activity: 43
Merit: 0


View Profile
May 06, 2014, 05:58:57 PM
 #8

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?
PetePete (OP)
Newbie
*
Offline Offline

Activity: 43
Merit: 0


View Profile
May 06, 2014, 06:02:05 PM
 #9

hmm pywallet looks complicated to install..
DannyHamilton
Legendary
*
Offline Offline

Activity: 3486
Merit: 4851



View Profile
May 07, 2014, 01:38:02 PM
 #10

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).
PetePete (OP)
Newbie
*
Offline Offline

Activity: 43
Merit: 0


View Profile
May 07, 2014, 05:44:31 PM
 #11

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.
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
May 07, 2014, 05:50:17 PM
 #12

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. 
PetePete (OP)
Newbie
*
Offline Offline

Activity: 43
Merit: 0


View Profile
May 08, 2014, 03:20:15 PM
 #13

On my to do list Smiley
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!