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.