Closed ghost closed 7 years ago
bip45 is supported by the HD module, just not the wallet. There's even helper functions for it.
var key = HD.generate();
var purposeKey = key.derivePurpose45();
Also, you can do:
key = HD.PrivateKey.fromMnemonic(mnemonic);
// or
key = HD.PrivateKey.fromSeed(mnemonic.toSeed());
Instead of calling out to pbkdf2.
excellent.
I read at the wallet docs that bip45 is not supported but:
Would this code work and derive a correct bip45 shared xpub and sub-branches if I use some brute-forced path?