Closed 0xcielo closed 8 months ago
Chain code is a concept that solely exists in BIP32.
ECPairs are just simple ECDSA key pairs.
There is no way to get a chain code from an ECPair.
Please read BIP32 for further information on what the chain code is and how it is generated.
const keyPair = ECPair.fromWIF(privateKey, network); bip32.fromPrivateKey(keyPair.privateKey, keyPair.chainCode, network);
I need keyPair.chainCode, and does not exists, how to retrieve?