mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-07-25 00:05:52 +00:00
chore: update to version 14.0.11 and align website URLs
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
export function createSeedDeriveFn(fromSeed, derive) {
|
||||
return (keypair, { chainCode, isHard }) => {
|
||||
if (!isHard) {
|
||||
throw new Error('A soft key was found in the path and is not supported');
|
||||
}
|
||||
return fromSeed(derive(keypair.secretKey.subarray(0, 32), chainCode));
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user