Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(signingKey: string) {
let ec = new elliptic.eddsa('ed25519');
let keyS = utils.toHex(base64js.toByteArray(signingKey));
this.key = ec.keyFromSecret(keyS);
}