@@ -7,7 +7,7 @@ extern crate alloc;
7
7
use hex_literal:: hex;
8
8
use openvm:: io:: read_vec;
9
9
use openvm_ecc_guest:: {
10
- algebra:: { DivUnsafe , Field , IntMod } ,
10
+ algebra:: { Field , IntMod } ,
11
11
ed25519:: { Ed25519Coord , Ed25519Point } ,
12
12
edwards:: TwistedEdwardsPoint ,
13
13
weierstrass:: WeierstrassPoint ,
@@ -64,13 +64,13 @@ pub fn main() {
64
64
65
65
test_possible_sw_decompression :: < CurvePoint5mod8 > ( & x, & y, rec_id) ;
66
66
// 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) ;
68
68
// this x is such that y^2 = x^3 + 6 = 0
69
69
// we want to test the case where y^2 = 0 and rec_id = 1
70
70
let x = Fp5mod8 :: from_le_bytes_unchecked ( & hex ! (
71
71
"d634a701c3b9b8cbf7797988be3953b442863b74d2d5c4d5f1a9de3c0c256d90"
72
72
) ) ;
73
- test_possible_sw_decompression :: < CurvePoint5mod8 > ( & x, & Fp5mod8 :: ZERO , 0 ) ;
73
+ test_possible_sw_decompression :: < CurvePoint5mod8 > ( & x, & < Fp5mod8 as Field > :: ZERO , 0 ) ;
74
74
test_impossible_sw_decompression :: < CurvePoint5mod8 > ( & x, 1 ) ;
75
75
76
76
let x = Fp1mod4 :: from_le_bytes_unchecked ( & bytes[ 128 ..160 ] ) ;
0 commit comments