Skip to content

Commit d67bfa0

Browse files
committed
DecafPoint is always torsion free
1 parent a599224 commit d67bfa0

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

ed448-goldilocks/src/constants.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,3 @@ pub const DECAF_BASEPOINT: DecafPoint = DecafPoint(curve::twedwards::extended::E
1212
/// \ell = 2^\{446\} + 0x8335dc163bb124b65129c96fde933d8d723a70aadc873d6d54a7bb0d.
1313
/// $$
1414
pub const EDWARDS_BASEPOINT_ORDER: EdwardsScalar = EdwardsScalar::new(ORDER);
15-
16-
/// `BASEPOINT_ORDER` is the order of the Decaf448 basepoint, i.e.,
17-
/// $$
18-
/// \ell = 2^\{446\} + 0x8335dc163bb124b65129c96fde933d8d723a70aadc873d6d54a7bb0d.
19-
/// $$
20-
pub const DECAF_BASEPOINT_ORDER: DecafScalar = DecafScalar::new(ORDER);

ed448-goldilocks/src/decaf/points.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::constants::{DECAF_BASEPOINT, DECAF_BASEPOINT_ORDER};
1+
use crate::constants::DECAF_BASEPOINT;
22
use crate::curve::twedwards::extended::ExtendedPoint;
33
use crate::field::FieldElement;
44
use crate::*;
@@ -226,7 +226,7 @@ impl CofactorGroup for DecafPoint {
226226
}
227227

228228
fn is_torsion_free(&self) -> Choice {
229-
(self * DECAF_BASEPOINT_ORDER).ct_eq(&Self::IDENTITY)
229+
self.ct_eq(&Self::IDENTITY)
230230
}
231231
}
232232

0 commit comments

Comments
 (0)