pub trait SecretKey: Clone + Zeroize + Debug {
    type PK: PublicKey;
    fn generate() -> Self;
fn generate_with<R: CryptoRng + RngCore>(csprng: R) -> Self
    where
        Self: Sized
;
fn to_public(&self) -> Self::PK; }
Expand description

Trait represents a secret key.

Associated Types

Required methods

Generate an “unbiased” SecretKey;

Generates an “unbiased” SecretKey directly from a user suplied csprng uniformly.

Derives the PublicKey corresponding to this SecretKey.

Implementors