pub trait SignatureStorage<PK, SIG>where
    PK: PublicKey,
    SIG: Signature,{
    // Required methods
    fn get_signature(&self, key: &PK) -> StorageResult<Option<&SIG>>;
    fn save_signature(&mut self, key: PK, signature: SIG) -> StorageResult<()>;
}
Expand description

Prekeys signature storage.

Required Methods§

source

fn get_signature(&self, key: &PK) -> StorageResult<Option<&SIG>>

Get a signature for a key.

source

fn save_signature(&mut self, key: PK, signature: SIG) -> StorageResult<()>

Save a signature.

Implementors§

source§

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