Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
static generateKeyPairFromSecret(secret) {
// Create key pair from secret
let keyPair = ec.keyFromSecret(secret); // hex string, array or Buffer
console.debug(`Public key: \n${elliptic.utils.toHex(keyPair.getPublic())}`);
return keyPair;
}