Skip to content

Commit

Permalink
fix: address inactive public key check in verify_signature_noir
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Oct 10, 2024
1 parent 70cbeb4 commit 2266d84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion noir_stdlib/src/schnorr.nr
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub fn verify_signature_noir<let N: u32>(
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];
}
Expand Down

0 comments on commit 2266d84

Please sign in to comment.