Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const deriveNetworkSeedFromMnemonic = async (
mnemonic,
passphrase,
revision
) => {
//NOTE revision is the point's on-chain revision number. since common uhdw
// usage derives the first key at revision/index 0, we need to decrement
// the on-chain revision number by one to get the number to derive with.
return Just(await kg.deriveNetworkSeed(mnemonic, passphrase, revision - 1));
};