11use super :: SpartanExtensionField ;
2+ use crate :: scalar:: Scalar ;
23use crate :: { AppendToTranscript , ProofTranscript , Transcript } ;
34use core:: borrow:: Borrow ;
45use core:: iter:: { Product , Sum } ;
@@ -9,7 +10,6 @@ use rand::{CryptoRng, RngCore};
910use serde:: { Deserialize , Serialize } ;
1011use subtle:: { Choice , ConditionallySelectable , ConstantTimeEq , CtOption } ;
1112use zeroize:: Zeroize ;
12- use crate :: scalar:: Scalar ;
1313
1414/// Field wrapper around ext2 Goldilocks
1515#[ derive( Clone , Copy , Eq , Serialize , Deserialize , Hash , Debug ) ]
@@ -26,28 +26,28 @@ impl Mul<Scalar> for ScalarExt2 {
2626
2727 #[ inline]
2828 fn mul ( self , rhs : Scalar ) -> Self :: Output {
29- ( self . inner ( ) * & rhs. inner ( ) ) . into ( )
29+ ( self . inner ( ) * & rhs. inner ( ) ) . into ( )
3030 }
3131}
3232impl < ' a > Mul < & ' a Scalar > for ScalarExt2 {
3333 type Output = Self ;
3434
3535 #[ inline]
3636 fn mul ( mut self , rhs : & ' a Scalar ) -> Self :: Output {
37- self *= rhs;
38- self
37+ self *= rhs;
38+ self
3939 }
4040}
4141impl MulAssign < & Scalar > for ScalarExt2 {
4242 #[ inline]
4343 fn mul_assign ( & mut self , rhs : & Scalar ) {
44- self . 0 *= rhs. inner ( ) ;
44+ self . 0 *= rhs. inner ( ) ;
4545 }
4646}
4747impl MulAssign < Scalar > for ScalarExt2 {
4848 #[ inline]
4949 fn mul_assign ( & mut self , rhs : Scalar ) {
50- self . mul_assign ( & rhs)
50+ self . mul_assign ( & rhs)
5151 }
5252}
5353impl SpartanExtensionField for ScalarExt2 {
@@ -69,7 +69,7 @@ impl SpartanExtensionField for ScalarExt2 {
6969 /// Build a self from a base element; pad ext with 0s.
7070 fn from_base ( b : & Self :: BaseField ) -> Self {
7171 GoldilocksExt2 :: from_base ( b. inner ( ) ) . into ( )
72- }
72+ }
7373
7474 fn random < Rng : RngCore + CryptoRng > ( rng : & mut Rng ) -> Self {
7575 GoldilocksExt2 :: random ( rng) . into ( )
0 commit comments