Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
);
}
if (keysgroup.length < minimum) {
throw new Error(
'Minimum number of signatures is larger than the number of keys in the keysgroup.',
);
}
validateKeysgroup(
keysgroup,
MULTISIGNATURE_MIN_KEYSGROUP,
MULTISIGNATURE_MAX_KEYSGROUP,
);
validateNetworkIdentifier(networkIdentifier);
};
const validateInputs = ({
secondPassphrase,
networkIdentifier,
}: {
readonly secondPassphrase: string;
readonly networkIdentifier: string;
}): void => {
if (typeof secondPassphrase !== 'string') {
throw new Error('Please provide a secondPassphrase. Expected string.');
}
validateNetworkIdentifier(networkIdentifier);
};