pub trait KeyIdVault {
    fn secret_by_key_id<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key_id: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Secret, Error>> + Send + 'async_trait, Global>>Notable traits for Pin<P>impl<P> Future for Pin<P> where
    P: DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;

    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; fn compute_key_id_for_public_key<'life0, 'life1, 'async_trait>(
        &'life0 self,
        public_key: &'life1 PublicKey
    ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait, Global>>Notable traits for Pin<P>impl<P> Future for Pin<P> where
    P: DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;

    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }
Expand description

Defines the KeyId interface for Ockam vaults.

Required Methods

Return the Secret for a given key id.

Compute and return the KeyId for a given public key.

Implementors