Skip to content

Commit c29bdb2

Browse files
committed
Remove AffinePoint::isogeny()
1 parent 8087ed3 commit c29bdb2

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
@@ -95,37 +95,6 @@ impl AffinePoint {
9595
}
9696
}
9797

98-
// pub(crate) fn isogeny(&self) -> Self {
99-
// let x = self.x;
100-
// let y = self.y;
101-
// let mut t0 = x.square(); // x^2
102-
// let t1 = t0 + FieldElement::ONE; // x^2+1
103-
// t0 -= FieldElement::ONE; // x^2-1
104-
// let mut t2 = y.square(); // y^2
105-
// t2 = t2.double(); // 2y^2
106-
// let t3 = x.double(); // 2x
107-
108-
// let mut t4 = t0 * y; // y(x^2-1)
109-
// t4 = t4.double(); // 2y(x^2-1)
110-
// let xNum = t4.double(); // xNum = 4y(x^2-1)
111-
112-
// let mut t5 = t0.square(); // x^4-2x^2+1
113-
// t4 = t5 + t2; // x^4-2x^2+1+2y^2
114-
// let xDen = t4 + t2; // xDen = x^4-2x^2+1+4y^2
115-
116-
// t5 *= x; // x^5-2x^3+x
117-
// t4 = t2 * t3; // 4xy^2
118-
// let yNum = t4 - t5; // yNum = -(x^5-2x^3+x-4xy^2)
119-
120-
// t4 = t1 * t2; // 2x^2y^2+2y^2
121-
// let yDen = t5 - t4; // yDen = x^5-2x^3+x-2x^2y^2-2y^2
122-
123-
// Self {
124-
// x: xNum * xDen.invert(),
125-
// y: yNum * yDen.invert(),
126-
// }
127-
// }
128-
12998
/// Standard compression; store Y and sign of X
13099
pub fn compress(&self) -> CompressedEdwardsY {
131100
let affine_x = self.x;

0 commit comments

Comments
 (0)