pub trait ProtocolStorage<SK, PK, S>: IdentityKeyStorage<SK> + PreKeyStorage<SK> + SignatureStorage<PK, S> + OnetimeKeyStorage<SK>where
    SK: SecretKey,
    PK: PublicKey,
    S: Signature,{
    // Required method
    fn new(identity_keypair: KeyPair<SK>, prekey_keypair: KeyPair<SK>) -> Self;
}

Required Methods§

source

fn new(identity_keypair: KeyPair<SK>, prekey_keypair: KeyPair<SK>) -> Self

Implementors§

source§

impl<SK, SIG> ProtocolStorage<SK, <SK as SecretKey>::PK, SIG> for Storage<SK, SIG>where SK: SecretKey, SK::PK: Eq + Hash, SIG: Signature,