Trait ockam_core::vault::KeyIdVault
source ·
[−]pub trait KeyIdVault {
fn get_secret_by_key_id<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key_id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Secret>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn compute_key_id_for_public_key<'life0, 'life1, 'async_trait>(
&'life0 mut self,
public_key: &'life1 PublicKey
) -> Pin<Box<dyn Future<Output = Result<KeyId>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
}
Expand description
Key id related vault functionality
Required methods
Return Secret
for given key id