Generate an FN-DSA key pair for the specified security level.
Security level: 512 (NIST Level 1) or 1024 (NIST Level 5).
Key pair with hex-encoded public and secret keys.
const kp = fnDsaKeygen(512);console.log(kp.publicKey); // hex stringconsole.log(kp.secretKey); // hex stringconsole.log(kp.algorithm); // "fn-dsa-512" Copy
const kp = fnDsaKeygen(512);console.log(kp.publicKey); // hex stringconsole.log(kp.secretKey); // hex stringconsole.log(kp.algorithm); // "fn-dsa-512"
Generate an FN-DSA key pair for the specified security level.