Trait leaf_protocol::store::KeyResolverImpl

source ·
pub trait KeyResolverImpl<KeyId> {
    // Required methods
    fn id(&self) -> KeyId;
    fn resolve(&self, data: &[u8]) -> KeyId;
}

Required Methods§

source

fn id(&self) -> KeyId

Returns the EncryptionAlgorithmId that this implements.

source

fn resolve(&self, data: &[u8]) -> KeyId

Resolve the given data to a key using this algorithm.

Implementors§