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<
38
38
39
39
mod montgomery_affine_impl {
40
40
use super :: * ;
41
- use ark_ec:: twisted_edwards:: Affine as GroupAffine ;
41
+ use ark_ec:: twisted_edwards:: MontgomeryAffine as GroupAffine ;
42
42
use ark_ff:: Field ;
43
43
use core:: ops:: Add ;
44
44
@@ -83,8 +83,8 @@ mod montgomery_affine_impl {
83
83
pub fn from_edwards_to_coords (
84
84
p : & TEAffine < P > ,
85
85
) -> 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 ) ;
88
88
} else if p. x == P :: BaseField :: zero ( ) {
89
89
GroupAffine :: new ( P :: BaseField :: zero ( ) , P :: BaseField :: zero ( ) )
90
90
} else {
You can’t perform that action at this time.
0 commit comments