Skip to content

Commit

Permalink
fix(stdlib): Workaround for Field comparison error in EdDSA signature…
Browse files Browse the repository at this point in the history
… verification (#1372)

Workaround for Field comparison error
  • Loading branch information
ax0 authored May 18, 2023
1 parent dbec6f2 commit e790c9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions noir_stdlib/src/eddsa.nr
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ fn lt_bytes32(x: Field, y: Field) -> bool {
let mut done = false;
for i in 0..32 {
if (!done) {
let x_byte = x_bytes[31 - i];
let y_byte = y_bytes[31 - i];
let x_byte = x_bytes[31 - i] as u8;
let y_byte = y_bytes[31 - i] as u8;
let bytes_match = x_byte == y_byte;
if !bytes_match {
x_is_lt = x_byte < y_byte;
Expand Down

0 comments on commit e790c9f

Please sign in to comment.