Trait cryptraits::key::KeyPair
source · pub trait KeyPair: Clone + Zeroize {
type SK: SecretKey;
fn public(&self) -> &<Self::SK as SecretKey>::PK;
fn to_public(&self) -> <Self::SK as SecretKey>::PK;
fn secret(&self) -> &Self::SK;
}
Expand description
Trait represents a keypair.