File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
extensions/ecc/te-setup/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -115,8 +115,8 @@ pub fn te_declare(input: TokenStream) -> TokenStream {
115115 let y1y2 = p1. y( ) * p2. y( ) ;
116116 let dx1x2y1y2 = Self :: CURVE_D * x1x2 * y1y2;
117117
118- let x3 = ( x1y2 + y1x2) . div_unsafe( & ( < Self as openvm_ecc_guest :: edwards :: TwistedEdwardsPoint >:: Coordinate :: ONE + dx1x2y1y2) ) ;
119- let y3 = ( y1y2 - Self :: CURVE_A * x1x2) . div_unsafe( & ( < Self as openvm_ecc_guest :: edwards :: TwistedEdwardsPoint >:: Coordinate :: ONE - dx1x2y1y2) ) ;
118+ let x3 = ( x1y2 + y1x2) . div_unsafe( & <#intmod_type as openvm_algebra_guest :: IntMod >:: ONE + dx1x2y1y2) ;
119+ let y3 = ( y1y2 - Self :: CURVE_A * x1x2) . div_unsafe( & <#intmod_type as openvm_algebra_guest :: IntMod >:: ONE - dx1x2y1y2) ;
120120
121121 #struct_name { x: x3, y: y3 }
122122 }
You can’t perform that action at this time.
0 commit comments