Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(stdlib): Workaround for Field comparison error in EdDSA signature verification #1372

Merged
merged 1 commit into from
May 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading