diff --git a/elliptic-curve/src/lib.rs b/elliptic-curve/src/lib.rs index cd1f1e06f..61d28ce0a 100644 --- a/elliptic-curve/src/lib.rs +++ b/elliptic-curve/src/lib.rs @@ -110,6 +110,8 @@ pub const ALGORITHM_OID: pkcs8::ObjectIdentifier = /// curves (e.g. [`SecretKey`]). pub trait Curve: Clone + Debug + Default + Eq + Ord + Send + Sync { /// Integer type used to represent field elements of this elliptic curve. + // TODO(tarcieri): replace this with an e.g. `const Curve::MODULUS: uint`. + // Requires rust-lang/rust#60551, i.e. `const_evaluatable_checked` type UInt: AsRef<[bigint::Limb]> + ArrayEncoding + Copy