Skip to content

Commit

Permalink
api changes from AffinePoint::<Bn254, 16>::from
Browse files Browse the repository at this point in the history
  • Loading branch information
CeciliaZ030 committed Jun 9, 2024
1 parent c5e8fa2 commit 2648823
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions provers/sp1/guest/src/zk_op.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ fn be_bytes_to_point(input: &[u8]) -> AffinePoint<Bn254, 16> {
y.reverse();

// Init AffinePoint for sp1
AffinePoint::<Bn254, 16>::from(x, y)
AffinePoint::<Bn254, 16>::from(&x, &y)
}

#[inline]
Expand Down Expand Up @@ -137,7 +137,7 @@ harness::zk_suits!(
le_chunk
})
.collect::<Vec<_>>();
let p = AffinePoint::<Bn254, 16>::from(p_bytes[0], p_bytes[1]);
let p = AffinePoint::<Bn254, 16>::from&p_bytes[0], &p_bytes[1]);

let mut p_x_le = p.to_le_bytes()[..32].to_owned();
let mut p_y_le = p.to_le_bytes()[32..].to_owned();
Expand Down Expand Up @@ -170,7 +170,7 @@ harness::zk_suits!(
p_x.reverse();
p_y.reverse();

let p = AffinePoint::<Bn254, 16>::from(p_x, p_y);
let p = AffinePoint::<Bn254, 16>::from(&p_x, &p_y);
let p_bytes_le = p.to_le_bytes();

// Reverse to x, y separately to big-endian bytes
Expand Down

0 comments on commit 2648823

Please sign in to comment.