File tree Expand file tree Collapse file tree 1 file changed +0
-31
lines changed
ed448-goldilocks/src/edwards Expand file tree Collapse file tree 1 file changed +0
-31
lines changed Original file line number Diff line number Diff line change @@ -86,37 +86,6 @@ impl AffinePoint {
86
86
}
87
87
}
88
88
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
-
120
89
/// Standard compression; store Y and sign of X
121
90
pub fn compress ( & self ) -> CompressedEdwardsY {
122
91
let affine_x = self . x ;
You can’t perform that action at this time.
0 commit comments