pub trait Generator {
    type Error;

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

Generates new keypair.

Required Associated Types§

type Error

Required Methods§

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

Should be called to generate new keypair.

Implementations on Foreign Types§

§

impl KeyPairGenerator for OsRng

Implementors§