pub trait EcSk:
Clone
+ Eq
+ Send {
type Pk: EcPk;
// Required methods
fn generate_keypair() -> (Self, Self::Pk)
where Self: Sized;
fn to_pk(&self) -> Result<Self::Pk, EcSkInvalid>;
}Expand description
Elliptic-curve based private key type.
§Safety
The type provides no guarantees on the key validity upon deserialization.
Required Associated Types§
Required Methods§
fn generate_keypair() -> (Self, Self::Pk)where
Self: Sized,
fn to_pk(&self) -> Result<Self::Pk, EcSkInvalid>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.