Skip to content

Commit

Permalink
Re-add the assert_equal calls
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Feb 27, 2023
1 parent 16f4781 commit 4e06695
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cpp/src/aztec/stdlib/encryption/schnorr/schnorr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,8 @@ bool_t<C> verify_signature(const byte_array<C>& message, const point<C>& pub_key

field_t<C> output_hi(output.slice(0, 16));
field_t<C> output_lo(output.slice(16, 16));
output_lo.assert_equal(sig.e_lo, "verify signature failed");
output_hi.assert_equal(sig.e_hi, "verify signature failed");

bool_t<C> valid = output_lo == sig.e_lo && output_hi == sig.e_hi;
return valid;
Expand Down

0 comments on commit 4e06695

Please # to comment.