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.
CompressedEdwardsY::decompress()
1 parent 912d939 commit 6740ef7Copy full SHA for 6740ef7
ed448-goldilocks/src/edwards/extended.rs
@@ -236,11 +236,10 @@ impl CompressedEdwardsY {
236
///
237
/// Returns `None`:
238
/// - if the input is not the \\(y\\)-coordinate of a curve point.
239
- /// - if the input point is not on the curve.
240
/// - if the input point has nonzero torsion component.
241
pub fn decompress(&self) -> CtOption<EdwardsPoint> {
242
self.decompress_unchecked()
243
- .and_then(|pt| CtOption::new(pt, pt.is_on_curve() & pt.is_torsion_free()))
+ .and_then(|pt| CtOption::new(pt, pt.is_torsion_free()))
244
}
245
246
/// View this `CompressedEdwardsY` as an array of bytes.
0 commit comments