pub trait KeyPairGenerator {
    type Error;

    // Required method
    fn generate(&mut self) -> Result<KeyPair, Self::Error>;
}
Expand description

Generates new keypair.

Required Associated Types§

Required Methods§

source

fn generate(&mut self) -> Result<KeyPair, Self::Error>

Should be called to generate new keypair.

Implementations on Foreign Types§

source§

impl KeyPairGenerator for OsRng

§

type Error = Void

source§

fn generate(&mut self) -> Result<KeyPair, Self::Error>

Implementors§