Skip to content

Commit 2e59e6f

Browse files
Fix typo in ecc tests
1 parent b821044 commit 2e59e6f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

extensions/ecc/tests/programs/examples/decompress.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ extern crate alloc;
77
use hex_literal::hex;
88
use openvm::io::read_vec;
99
use openvm_ecc_guest::{
10-
algebra::{DivUnsafe, Field, IntMod},
10+
algebra::{Field, IntMod},
1111
ed25519::{Ed25519Coord, Ed25519Point},
1212
edwards::TwistedEdwardsPoint,
1313
weierstrass::WeierstrassPoint,
@@ -64,13 +64,13 @@ pub fn main() {
6464

6565
test_possible_sw_decompression::<CurvePoint5mod8>(&x, &y, rec_id);
6666
// x = 0 is not on the x-coordinate of any point on the CurvePoint5mod8 curve
67-
test_impossible_sw_decompression::<CurvePoint5mod8>(&Fp5mod8::ZERO, rec_id);
67+
test_impossible_sw_decompression::<CurvePoint5mod8>(&<Fp5mod8 as Field>::ZERO, rec_id);
6868
// this x is such that y^2 = x^3 + 6 = 0
6969
// we want to test the case where y^2 = 0 and rec_id = 1
7070
let x = Fp5mod8::from_le_bytes_unchecked(&hex!(
7171
"d634a701c3b9b8cbf7797988be3953b442863b74d2d5c4d5f1a9de3c0c256d90"
7272
));
73-
test_possible_sw_decompression::<CurvePoint5mod8>(&x, &Fp5mod8::ZERO, 0);
73+
test_possible_sw_decompression::<CurvePoint5mod8>(&x, &<Fp5mod8 as Field>::ZERO, 0);
7474
test_impossible_sw_decompression::<CurvePoint5mod8>(&x, 1);
7575

7676
let x = Fp1mod4::from_le_bytes_unchecked(&bytes[128..160]);

0 commit comments

Comments
 (0)