Author

Topic: Core wallet and private keys (Read 622 times)

legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
July 05, 2017, 05:56:30 AM
#6
personally, I believe having unencrypted copies of your private keys laying around is pretty dangerous... how/where would you store these keys?
I guess a safe is a decent choice, just in case you forget the password.
As long as you have a backup of your wallet.dat file and you created this wallet.dat using a version of Core from v0.13+ then you should have an HD wallet and will be able to regenerate all your keys by restoring from this backup file.
You also need to backup the wallet.dat again if you encrypt the wallet file or change its password. The HD string will be changed when you do either of that.
HCP
legendary
Activity: 2086
Merit: 4361
July 05, 2017, 12:45:11 AM
#5
personally, I believe having unencrypted copies of your private keys laying around is pretty dangerous... how/where would you store these keys?

As long as you have a backup of your wallet.dat file and you created this wallet.dat using a version of Core from v0.13+ then you should have an HD wallet and will be able to regenerate all your keys by restoring from this backup file.

If your wallet was created BEFORE v0.13 then I believe regular backups of wallet.dat are required to prevent "losing" newer private keys once the default keypool is exhausted.

All the usual warnings about having unencrypted private keys on an online computer apply here... having your keys exposed increases the risk of losing your coins.
newbie
Activity: 51
Merit: 0
July 05, 2017, 12:19:34 AM
#4
In Core, is it thought to be important to have an unencrypted backup of the private keys?
HCP
legendary
Activity: 2086
Merit: 4361
July 05, 2017, 12:00:40 AM
#3
using either the Console in GUI, or the bitcoin-cli... You can use the dumpwallet or dumpprivkey commands (If you have a passphrase for the wallet, you'll probably need to unlock the wallet first)

Code:
walletpassphrase "passphrase" timeout
dumpwallet "filename"
dumpprivkey "address"

"Passphrase" is pretty obvious Wink
The timeout is the number of seconds to unlock the wallet for (ie. 600 = 10 minutes)
"filename" is the filename to dump the ENTIRE wallet to
"Address" is the specific bitcoin address you want to dump the private key for

examples:
Code:
walletpassphrase Th1s1sMy5uper5ecretPassPhrase 600
dumpwallet c:\dumped_wallet.txt
walletlock

Code:
walletpassphrase Th1s1sMy5uper5ecretPassPhrase 600
dumpprivkey 1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2
walletlock
newbie
Activity: 51
Merit: 0
July 04, 2017, 11:55:31 PM
#2
Oops.
How does one obtain the private keys in the core wallet?
newbie
Activity: 51
Merit: 0
July 04, 2017, 11:54:29 PM
#1
Yes, this is very basic.
Jump to: