From e446bc8a1f5704fc8c38d8bd700a631b716368a6 Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Tue, 7 Mar 2017 00:57:36 -0800 Subject: [PATCH] The identity point is already in EIGHT_TORSION --- src/curve.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/curve.rs b/src/curve.rs index 52a3b90..c433767 100644 --- a/src/curve.rs +++ b/src/curve.rs @@ -1263,8 +1263,9 @@ mod test { #[test] fn is_small_order() { - assert!(ExtendedPoint::identity().is_small_order() == true); + // The basepoint has large prime order assert!(constants::BASEPOINT.is_small_order() == false); + // constants::EIGHT_TORSION has all points of small order. for torsion_point in &constants::EIGHT_TORSION { assert!(torsion_point.is_small_order() == true); }