iancoleman / bip39

A web tool for converting BIP39 mnemonic codes
https://iancoleman.io/bip39/
MIT License
3.42k stars 1.42k forks source link

The WIF format is not available after entering the BIP39 twelve-word mnemonic. #326

Open dscotese opened 5 years ago

dscotese commented 5 years ago

I don't see any way to use this tool to enter a 12-word mnemonic and get back the WIF to import into Bitcoin Core's client using hdseed.

iancoleman commented 5 years ago

using hdseed

I'm not sure what hdseed is. Can you please explain this?

There are WIF private keys in the table of addresses. You might need to scroll to the right since the table is pretty wide and the keys may be off past the right-hand-side of the window.

Hope this helps but I'm not really sure what you're asking.

dscotese commented 5 years ago

Sorry I left off the "set" part which explains why you couldn't find it. Bitcoin has an RPC called sethdseed that allows the user to create a new HD wallet using a master seed, but the masterseed must be in the format of a WIF private key. Here is a reference for you: https://bitcoincore.org/en/doc/0.17.0/rpc/wallet/sethdseed/ You're right, I didn't see the WIFs in the table below, but actually, they are WIFs for the derived addresses, not for the seed itself. When someone uses your page to reconstruct the HD seed from their recovery words, the page does not provide the WIF for the HD Seed itself, which is what I needed. I got it from the other implementation you referenced (https://bip32jp.github.io/english/) Thanks!

robiiinos commented 5 years ago

For any help in implementation (export the node to WIF), as this tool use bitcoinjs-lib, we can refer to : https://github.com/bitcoinjs/bitcoinjs-lib/blob/master/test/integration/bip32.js#L12

wigy-opensource-developer commented 4 years ago

@dscotese "BIP32 Root Key" seems to be the xprv... base58check encoded extended private key that you need to import with bitcoin-cli sethdseed. Have you tried that and it did not work?

dscotese commented 4 years ago

I didn't try anything else after I found the WIF for the HD Seed itself, which I got it from the other implementation @iancoleman referenced (https://bip32jp.github.io/english/). I don't remember what WIF stands for or if it's base58check encoded.

iancoleman commented 4 years ago

WIF stands for Wallet Import Format.

sgillespie commented 4 years ago

If I can piggy-back on this issue, I'm having the same problem. Using either tool mentioned above, I can not seem to reproduce the addresses that are generated (Using m/0'/0' and hardened addresses) with bitcoin-cli using the process above.

Assuming "BIP32 Root Key" is the key I need in WIF form, I'm afraid I'm too naive to figure out how to do this. Online testing utilities don't accept the extended key as valid.