Trait xxxdh::SecretKey[][src]

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

A secret key for use in X3DH protocol.

Associated Types

Required methods

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

Derive the PublicKey corresponding to this SecretKey.

Implementors

X3DH Keypair.