libbitcoin/libbitcoin-explorer

'bx hd-private' not matching BIP85 Child Key in Mnemonic Code Converter

Closed this issue · 2 comments

I'm playing with Mnemonic Code Converter site by following step by step conversion, however I can't get pass BIP85 Child Key.

So, for the given 3 words: client mixed great, I've generated successfully BIP32 Root Key (which matches the site):

$ echo client mixed great | bx mnemonic-to-seed | bx hd-new 
xprv9s21ZrQH143K3UX3BhXusdpBUSLW3KVBCV6DGAuAKoXumU9chwDWjT9gcxjyFs8YdBxysyvZx2yC6snUBhb46wwXeq5xNqRjx5WkD8bbxYf

Then I've clicked Show BIP85 (in order to generate BIP85 Child Key) and set BIP85 Application to Xpriv, and BIP85 Index to 0, and it generated a different key than:

$ echo client mixed great | bx mnemonic-to-seed | bx hd-new | bx hd-private -i 0
xprv9v6WUZT3D9NryJcPMGBxrauhE42egVktC9mwLKFuZUjinZencdiZ21d43oye8rX83cEjfAKptfaoceUYctptAhc2UUM398Akf9n6qXzd8RQ

I've tried a hardened key, doesn't help either:

$ echo client mixed great | bx mnemonic-to-seed | bx hd-new | bx hd-private -i 0 -d
xprv9v6WUZTBYouqAnZyHm1P76SvmRrmpvteFo2PhncirF6BNj2kr6qzTRJzJ41a5wwWKf35AjwtxDJEJ2U72H9g4LGj38Ytg2SzEfTQDVhEWB3

What I am missing?

Sorry, I don't know what that site does.

You can review the hd-private test cases, which demonstrate conformance with standard vectors. Maybe compare these to the site results.