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 {
115
115
let y1y2 = p1. y( ) * p2. y( ) ;
116
116
let dx1x2y1y2 = Self :: CURVE_D * x1x2 * y1y2;
117
117
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) ;
120
120
121
121
#struct_name { x: x3, y: y3 }
122
122
}
You can’t perform that action at this time.
0 commit comments