I have the following problem in Bitcoin Core. With this command:
echo carpet begin bacon master draft fortune food cherry cage axis vault clown | \ bx mnemonic-to-seed | \ bx hd-new -v 70615956 | \ bx hd-to-ec -c bx-testnet.cfg | \ sed 's/$/01/' | \ bx base58check-encode -v 239
What I am doing is from the mnemonic
carpet begin bacon master draft fortune food cherry cage axis vault clown, I am generating an
hdseed for Bitcoin Core in regtest. Results:
Then I use the command:
bitcoin-cli -regtest sethdseed true cNQQqyR81GZXU3Pa1pK1gQQp6jgni5HyLYM99nL2JpzVRmdCyrFE
Where I change the
hdseed for which I just got you and Bitcoin Core generates a key pool. When I put that same mnemonic on the page BIP39 it gives me as root key the same that gives me the command up to this part:
echo carpet begin bacon master draft fortune food cherry cage axis vault clown | \ bx mnemonic-to-seed | \ bx hd-new -v 70615956
However, the derivations of private keys generated by Bitcoin Core do not coincide with those of BIP39, nor does the BIP32 root key of BIP39 coincide with the private masterkey of Bitcoin Core, while the
hdseed if it matches the one that happens in the command. Both the derivations, hdseed and the Bitcoin Core master key are obtained with the command
bitcoin-cli -regtest dumpwallet test_wallet
I get two big unknowns:
- Is the way in which I am generating the hdseed from the mnemonic correct?
- Bitcoin Core generates its private master key from
hdseed? And if so, is that operation reversible?
But in general I want to know why they are giving different!!!
Thanks in advance.