Skip to content

Commit 7195013

Browse files
committed
Remove AffinePoint::isogeny()
1 parent 650ab60 commit 7195013

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

ed448-goldilocks/src/edwards/affine.rs

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -86,37 +86,6 @@ impl AffinePoint {
8686
}
8787
}
8888

89-
// pub(crate) fn isogeny(&self) -> Self {
90-
// let x = self.x;
91-
// let y = self.y;
92-
// let mut t0 = x.square(); // x^2
93-
// let t1 = t0 + FieldElement::ONE; // x^2+1
94-
// t0 -= FieldElement::ONE; // x^2-1
95-
// let mut t2 = y.square(); // y^2
96-
// t2 = t2.double(); // 2y^2
97-
// let t3 = x.double(); // 2x
98-
99-
// let mut t4 = t0 * y; // y(x^2-1)
100-
// t4 = t4.double(); // 2y(x^2-1)
101-
// let xNum = t4.double(); // xNum = 4y(x^2-1)
102-
103-
// let mut t5 = t0.square(); // x^4-2x^2+1
104-
// t4 = t5 + t2; // x^4-2x^2+1+2y^2
105-
// let xDen = t4 + t2; // xDen = x^4-2x^2+1+4y^2
106-
107-
// t5 *= x; // x^5-2x^3+x
108-
// t4 = t2 * t3; // 4xy^2
109-
// let yNum = t4 - t5; // yNum = -(x^5-2x^3+x-4xy^2)
110-
111-
// t4 = t1 * t2; // 2x^2y^2+2y^2
112-
// let yDen = t5 - t4; // yDen = x^5-2x^3+x-2x^2y^2-2y^2
113-
114-
// Self {
115-
// x: xNum * xDen.invert(),
116-
// y: yNum * yDen.invert(),
117-
// }
118-
// }
119-
12089
/// Standard compression; store Y and sign of X
12190
pub fn compress(&self) -> CompressedEdwardsY {
12291
let affine_x = self.x;

0 commit comments

Comments
 (0)