Sign a message with FN-DSA.
Security level: 512 or 1024.
Hex-encoded secret key.
Hex-encoded message to sign.
Signature result with hex-encoded signature.
const kp = fnDsaKeygen(512);const msg = Buffer.from("hello").toString("hex");const sig = fnDsaSign(512, kp.secretKey, msg);console.log(sig.signature); // hex string Copy
const kp = fnDsaKeygen(512);const msg = Buffer.from("hello").toString("hex");const sig = fnDsaSign(512, kp.secretKey, msg);console.log(sig.signature); // hex string
Sign a message with FN-DSA.