diff --git a/src/constants.rs b/src/constants.rs index 6ab40a5..955bb8d 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -71,26 +71,6 @@ pub const BASEPOINT_ORDER: Scalar = Scalar{ ], }; -/// `BASEPOINT_ORDER_MINUS_1` is the order of base point minus one, i.e. `l-1`, in little-endian bytes. -pub const BASEPOINT_ORDER_MINUS_1: Scalar = Scalar{ - bytes: [ - 0xec, 0xd3, 0xf5, 0x5c, 0x1a, 0x63, 0x12, 0x58, - 0xd6, 0x9c, 0xf7, 0xa2, 0xde, 0xf9, 0xde, 0x14, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, - ], -}; - -/// `BASEPOINT_ORDER_MINUS_2` is the order of base point minus two, i.e. `l-2`, in little-endian bytes. -pub const BASEPOINT_ORDER_MINUS_2: Scalar = Scalar{ - bytes: [ - 0xeb, 0xd3, 0xf5, 0x5c, 0x1a, 0x63, 0x12, 0x58, - 0xd6, 0x9c, 0xf7, 0xa2, 0xde, 0xf9, 0xde, 0x14, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, - ], -}; - // Precomputed basepoint table is generated into a file by build.rs #[cfg(feature="precomputed_tables")] diff --git a/src/scalar.rs b/src/scalar.rs index 64a59bc..72b2b01 100644 --- a/src/scalar.rs +++ b/src/scalar.rs @@ -790,12 +790,6 @@ mod test { assert_eq!(should_be_two, two); } - #[test] - fn impl_sub() { - let should_be_one = &constants::BASEPOINT_ORDER - &constants::BASEPOINT_ORDER_MINUS_1; - assert_eq!(should_be_one, Scalar::one()); - } - #[allow(non_snake_case)] #[test] fn impl_mul() {