KeyPair

Trait KeyPair 

Source
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.

Required Associated Types§

Required Methods§

Source

fn secret(&self) -> &Self::Secret

Get the secret key.

Source

fn public(&self) -> &Self::Public

Get the public key.

Implementors§