Verify an FN-DSA signature.
Security level: 512 or 1024.
Hex-encoded public key.
Hex-encoded message that was signed.
Hex-encoded signature to verify.
Verification result with validity flag.
const kp = fnDsaKeygen(512);const msg = Buffer.from("hello").toString("hex");const sig = fnDsaSign(512, kp.secretKey, msg);const result = fnDsaVerify(512, kp.publicKey, msg, sig.signature);console.log(result.valid); // true Copy
const kp = fnDsaKeygen(512);const msg = Buffer.from("hello").toString("hex");const sig = fnDsaSign(512, kp.secretKey, msg);const result = fnDsaVerify(512, kp.publicKey, msg, sig.signature);console.log(result.valid); // true
Verify an FN-DSA signature.