File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -920,7 +920,7 @@ impl<F: PrimeField> ToBytesGadget<F> for FpVar<F> {
920
920
fn to_bytes ( & self ) -> Result < Vec < UInt8 < F > > , SynthesisError > {
921
921
match self {
922
922
Self :: Constant ( c) => Ok ( UInt8 :: constant_vec (
923
- c. into_bigint ( ) . to_bytes_be ( ) . as_slice ( ) ,
923
+ c. into_bigint ( ) . to_bytes_le ( ) . as_slice ( ) ,
924
924
) ) ,
925
925
Self :: Var ( v) => v. to_bytes ( ) ,
926
926
}
@@ -930,7 +930,7 @@ impl<F: PrimeField> ToBytesGadget<F> for FpVar<F> {
930
930
fn to_non_unique_bytes ( & self ) -> Result < Vec < UInt8 < F > > , SynthesisError > {
931
931
match self {
932
932
Self :: Constant ( c) => Ok ( UInt8 :: constant_vec (
933
- c. into_bigint ( ) . to_bytes_be ( ) . as_slice ( ) ,
933
+ c. into_bigint ( ) . to_bytes_le ( ) . as_slice ( ) ,
934
934
) ) ,
935
935
Self :: Var ( v) => v. to_non_unique_bytes ( ) ,
936
936
}
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ use crate::{
8
8
} ;
9
9
use ark_ec:: bls12:: { Bls12 , Bls12Parameters , TwistType } ;
10
10
use ark_ff:: BitIteratorBE ;
11
- use core :: marker:: PhantomData ;
11
+ use ark_std :: marker:: PhantomData ;
12
12
13
13
/// Specifies the constraints for computing a pairing in a BLS12 bilinear group.
14
14
pub struct PairingVar < P : Bls12Parameters > ( PhantomData < P > ) ;
You can’t perform that action at this time.
0 commit comments