From 2266d84890c21e2a9f60250909558b23bc1479f8 Mon Sep 17 00:00:00 2001 From: TomAFrench Date: Thu, 10 Oct 2024 13:18:12 +0000 Subject: [PATCH] fix: address inactive public key check in `verify_signature_noir` --- noir_stdlib/src/schnorr.nr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noir_stdlib/src/schnorr.nr b/noir_stdlib/src/schnorr.nr index 0623f116dea..76db04400e2 100644 --- a/noir_stdlib/src/schnorr.nr +++ b/noir_stdlib/src/schnorr.nr @@ -37,7 +37,7 @@ pub fn verify_signature_noir( if ((sig_s.lo != 0) | (sig_s.hi != 0)) & ((sig_e.lo != 0) | (sig_e.hi != 0)) { let (r_is_infinite, result) = calculate_signature_challenge(public_key, sig_s, sig_e, message); - is_ok = !r_is_infinite; + is_ok &= !r_is_infinite; for i in 0..32 { is_ok &= result[i] == signature[32 + i]; }