We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 401610a commit d9ad9cdCopy full SHA for d9ad9cd
extensions/ecc/te-setup/src/lib.rs
@@ -115,8 +115,8 @@ pub fn te_declare(input: TokenStream) -> TokenStream {
115
let y1y2 = p1.y() * p2.y();
116
let dx1x2y1y2 = Self::CURVE_D * x1x2 * y1y2;
117
118
- let x3 = (x1y2 + y1x2).div_unsafe(&(Self::Coordinate::ONE + dx1x2y1y2));
119
- let y3 = (y1y2 - Self::CURVE_A * x1x2).div_unsafe(&(Self::Coordinate::ONE - dx1x2y1y2));
+ let x3 = (x1y2 + y1x2).div_unsafe(&(<Self as openvm_ecc_guest::edwards::TwistedEdwardsPoint>::Coordinate::ONE + dx1x2y1y2));
+ let y3 = (y1y2 - Self::CURVE_A * x1x2).div_unsafe(&(<Self as openvm_ecc_guest::edwards::TwistedEdwardsPoint>::Coordinate::ONE - dx1x2y1y2));
120
121
#struct_name { x: x3, y: y3 }
122
}
0 commit comments