File tree Expand file tree Collapse file tree 5 files changed +56
-3818
lines changed Expand file tree Collapse file tree 5 files changed +56
-3818
lines changed Original file line number Diff line number Diff line change @@ -7,13 +7,16 @@ use crate::EncodingError;
7
7
pub mod arkworks;
8
8
mod ops;
9
9
mod u32;
10
+
11
+ // The u64 backend requires arkworks
12
+ #[ cfg( feature = "arkworks" ) ]
10
13
mod u64;
11
14
12
15
cfg_if ! {
13
- if #[ cfg( feature = "u32_backend" ) ] {
14
- pub type Fp = u32 :: Fp ;
15
- } else {
16
+ if #[ cfg( feature = "arkworks" ) ] {
16
17
pub type Fp = u64 :: Fp ;
18
+ } else {
19
+ pub type Fp = u32 :: Fp ;
17
20
}
18
21
}
19
22
Original file line number Diff line number Diff line change @@ -658,9 +658,7 @@ mod tests {
658
658
#[ test]
659
659
fn test_minus_one_squared ( ) {
660
660
let minus_one = Fp :: zero ( ) - Fp :: one ( ) ;
661
- assert_eq ! ( Fp :: one( ) , Fp :: ONE ) ;
662
-
663
- //assert_eq!(minus_one.square(), Fp::ONE);
661
+ assert_eq ! ( minus_one. square( ) , Fp :: ONE ) ;
664
662
}
665
663
666
664
#[ test]
Original file line number Diff line number Diff line change 1
- pub mod fiat;
2
1
pub mod wrapper;
3
2
4
3
pub use wrapper:: Fp ;
You can’t perform that action at this time.
0 commit comments