Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
nhtyy committed Nov 28, 2024
1 parent 59e5a09 commit ff7bf7d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 43 deletions.
33 changes: 0 additions & 33 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion crates/core/machine/src/operations/field/field_sqrt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,11 @@ mod tests {
let mut row = [F::zero(); NUM_TEST_COLS];
let cols: &mut TestCols<F, P> = row.as_mut_slice().borrow_mut();
cols.a = P::to_limbs_field::<F, _>(a);
cols.sqrt.populate(&mut blu_events, 1, a, ed25519_sqrt);
cols.sqrt.populate(&mut blu_events, 1, a, |p| {
ed25519_sqrt(p).expect(
"By now we should have validated the sqrt exists, this is a bug",
)
});
output.add_byte_lookup_events(blu_events);
row
})
Expand Down
Binary file added examples/elf/riscv32im-succinct-zkvm-elf
Binary file not shown.
14 changes: 5 additions & 9 deletions examples/patch-testing/program/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,16 @@ fn test_curve25519_dalek_ng() {
/// Emits ED_DECOMPRESS syscall.
fn test_curve25519_dalek() {
let input_passing = [1u8; 32];

// This y-coordinate is not square, and therefore not on the curve
let limbs: [u64; 4] = [
8083970408152925034,
11907700107021980321,
16259949789167878387,
5695861037411660086,
];

let limbs: [u64; 4] =
[8083970408152925034, 11907700107021980321, 16259949789167878387, 5695861037411660086];

// convert to bytes
let mut input_failing = [0u8; 32];
for (i, limb) in limbs.iter().enumerate() {
let bytes = limb.to_be_bytes();
input_failing[i..i+8].copy_from_slice(&bytes);
input_failing[i..i + 8].copy_from_slice(&bytes);
}

let y_passing = CompressedEdwardsY_dalek(input_passing);
Expand Down

0 comments on commit ff7bf7d

Please sign in to comment.