exportfunctioncreateSeedDeriveFn(fromSeed, derive) {
return(keypair, { chainCode, isHard }) => {
if (!isHard) {
thrownewError('A soft key was found in the path and is not supported');
}
returnfromSeed(derive(keypair.secretKey.subarray(0, 32), chainCode));
};
}