Skip to content

Commit e790c9f

Browse files
authored
fix(stdlib): Workaround for Field comparison error in EdDSA signature verification (#1372)
Workaround for Field comparison error
1 parent dbec6f2 commit e790c9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

noir_stdlib/src/eddsa.nr

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ fn lt_bytes32(x: Field, y: Field) -> bool {
1010
let mut done = false;
1111
for i in 0..32 {
1212
if (!done) {
13-
let x_byte = x_bytes[31 - i];
14-
let y_byte = y_bytes[31 - i];
13+
let x_byte = x_bytes[31 - i] as u8;
14+
let y_byte = y_bytes[31 - i] as u8;
1515
let bytes_match = x_byte == y_byte;
1616
if !bytes_match {
1717
x_is_lt = x_byte < y_byte;

0 commit comments

Comments
 (0)