Bitcoin Forum
May 07, 2024, 05:18:28 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Dumping private keys vs sending coins (HD migration)  (Read 1479 times)
cellard (OP)
Legendary
*
Offline Offline

Activity: 1372
Merit: 1252


View Profile
April 24, 2017, 03:00:03 PM
 #1

I intend to migrate to the new HD format which is available since 0.13 (or 0.13.1?) Anyway, I want to have the nice looking HD icon activated in 0.14 so it's time to do this.

Should I dump the private keys and just import them, or should I send my coins to addresses created within the HD wallet.dat file?

It's just annoying to send the coins to yourself specially since you have to pay fees, and im going to need a couple different transactions to keep privacy... any ideas?
In order to achieve higher forum ranks, you need both activity points and merit points.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3388
Merit: 6631


Just writing some code


View Profile WWW
April 24, 2017, 03:15:24 PM
 #2

The only way to make sure that your Bitcoin has the benefits provided by an HD wallet is to send the Bitcoin from your old wallet to your new wallet. Importing the private keys will not be any more useful.

First make sure that Bitcoin Core is shut down. Then make a backup of your wallet.dat file. Move or rename the wallet.dat file so that there is no longer a file named wallet.dat in the Bitcoin Core data directory. Start Bitcoin Core and it will generate a new HD wallet and a corresponding wallet.dat file. Get as many addresses as you need and copy them somewhere. Then stop Bitcoin Core and make a backup of the new wallet.dat file. Move or rename it so that there is no longer a file named wallet.dat in the datadir. Then move or rename your original wallet file back to wallet.dat in the datadir. Start Bitcoin Core again. Send Bitcoin to the addresses that you copied down. Then stop Bitcoin Core, and replace the wallet.dat with the new wallet.dat that was created.

cellard (OP)
Legendary
*
Offline Offline

Activity: 1372
Merit: 1252


View Profile
April 24, 2017, 10:44:37 PM
 #3

The only way to make sure that your Bitcoin has the benefits provided by an HD wallet is to send the Bitcoin from your old wallet to your new wallet. Importing the private keys will not be any more useful.

First make sure that Bitcoin Core is shut down. Then make a backup of your wallet.dat file. Move or rename the wallet.dat file so that there is no longer a file named wallet.dat in the Bitcoin Core data directory. Start Bitcoin Core and it will generate a new HD wallet and a corresponding wallet.dat file. Get as many addresses as you need and copy them somewhere. Then stop Bitcoin Core and make a backup of the new wallet.dat file. Move or rename it so that there is no longer a file named wallet.dat in the datadir. Then move or rename your original wallet file back to wallet.dat in the datadir. Start Bitcoin Core again. Send Bitcoin to the addresses that you copied down. Then stop Bitcoin Core, and replace the wallet.dat with the new wallet.dat that was created.

It's clear that im going to take an entire day or 3 in order to make all the transactions, because as we know bitcoin is not that fast anymore. Also it's going to take a bit of fees. This is why i've been delaying the migration besides the fact that im generally lazy.
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!