Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: btc123thatthere on January 06, 2019, 11:22:35 PM



Title: Extended private masterkey import for bitcoin core
Post by: btc123thatthere on January 06, 2019, 11:22:35 PM
Is there a plan to be able to create a new wallet file based on an imported HD extended private masterkey on bitcoin core?
I couldn't see any plan mentioned on https://github.com/bitcoin/bips (https://github.com/bitcoin/bips).

Let's say a user loses their wallet file, they don't have a copy of all their private keys, but they do have their HD masterkey.
I guess they could go to https://iancoleman.io/bip39/ (https://iancoleman.io/bip39/), paste their masterkey into the 'BIP32 Root Key' field, and sweep the keys in order of Path (m/0/0/0 etc.) until all their funds are accessible again.

Also, regarding the Path (m/0/0/0 etc.), is there more info on this somewhere? -- I found some reading to do in Mastering Bitcoin on it.https://github.com/bitcoinbook/bitcoinbook (https://github.com/bitcoinbook/bitcoinbook) in Chapter 5 - Wallets.


Title: Re: Extended private masterkey import for bitcoin core
Post by: achow101 on January 07, 2019, 12:53:15 AM
First of all, BIPs are not roadmaps or plans for things to include in Bitcoin Core. They do not describe how Bitcoin Core works nor does having a BIP mean that it will go into Bitcoin Core. BIPs are just documents that document ideas and technical proposals to be used generally in Bitcoin.

Bitcoin Core does already support HD wallets. All newly created Bitcoin Core wallets are HD wallets. However, currently Bitcoin Core does not allow you to import HD seeds, BIP 39 mnemonics (note that seed and mnemonics are different things), or BIP 32 master private keys. This will be coming in the future but requires a significant wallet rework and overhaul that is currently ongoing.