diff --git a/ecdsa/src/hazmat.rs b/ecdsa/src/hazmat.rs index d3149418..013dde9a 100644 --- a/ecdsa/src/hazmat.rs +++ b/ecdsa/src/hazmat.rs @@ -43,14 +43,6 @@ use elliptic_curve::{FieldBytesEncoding, ScalarPrimitive}; #[cfg(any(feature = "arithmetic", feature = "digest"))] use crate::{elliptic_curve::array::ArraySize, Signature}; -/// Marker trait for elliptic curves intended for use with ECDSA. -pub trait EcdsaCurve: PrimeCurve { - /// Does this curve use low-S normalized signatures? - /// - /// This is typically `false`. See [`Signature::normalize_s`] for more information. - const NORMALIZE_S: bool; -} - /// Try to sign the given prehashed message using ECDSA. /// /// This trait is intended to be implemented on a type with access to the diff --git a/ecdsa/src/lib.rs b/ecdsa/src/lib.rs index 2a351825..5c216d96 100644 --- a/ecdsa/src/lib.rs +++ b/ecdsa/src/lib.rs @@ -166,6 +166,14 @@ const SHA384_OID: ObjectIdentifier = ObjectIdentifier::new_unwrap("2.16.840.1.10 #[cfg(feature = "digest")] const SHA512_OID: ObjectIdentifier = ObjectIdentifier::new_unwrap("2.16.840.1.101.3.4.2.3"); +/// Marker trait for elliptic curves intended for use with ECDSA. +pub trait EcdsaCurve: PrimeCurve { + /// Does this curve use low-S normalized signatures? + /// + /// This is typically `false`. See [`Signature::normalize_s`] for more information. + const NORMALIZE_S: bool; +} + /// Size of a fixed sized signature for the given elliptic curve. pub type SignatureSize = as Add>::Output;