File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/groups/curves/twisted_edwards Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ pub struct MontgomeryAffineVar<
3838
3939mod montgomery_affine_impl {
4040 use super :: * ;
41- use ark_ec:: twisted_edwards:: Affine as GroupAffine ;
41+ use ark_ec:: twisted_edwards:: MontgomeryAffine as GroupAffine ;
4242 use ark_ff:: Field ;
4343 use core:: ops:: Add ;
4444
@@ -83,8 +83,8 @@ mod montgomery_affine_impl {
8383 pub fn from_edwards_to_coords (
8484 p : & TEAffine < P > ,
8585 ) -> Result < ( P :: BaseField , P :: BaseField ) , SynthesisError > {
86- let montgomery_point: GroupAffine < P > = if p. y == P :: BaseField :: one ( ) {
87- GroupAffine :: identity ( )
86+ let montgomery_point: GroupAffine < P :: MontCurveConfig > = if p. y == P :: BaseField :: one ( ) {
87+ return Err ( SynthesisError :: UnexpectedIdentity ) ;
8888 } else if p. x == P :: BaseField :: zero ( ) {
8989 GroupAffine :: new ( P :: BaseField :: zero ( ) , P :: BaseField :: zero ( ) )
9090 } else {
You can’t perform that action at this time.
0 commit comments