pub trait KeyPair {
type Secret: SecretKey;
type Public: AsRef<[u8]>;
// Required methods
fn secret(&self) -> &Self::Secret;
fn public(&self) -> &Self::Public;
}Expand description
Trait for keypair types that can generate random keypairs.