Trait ockam_core::vault::Signer

source ·
pub trait Signer {
    // Required method
    fn sign<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        key_id: &'life1 KeyId,
        data: &'life2 [u8]
    ) -> Pin<Box<dyn Future<Output = Result<Signature>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Defines the Vault interface for Signing.

Required Methods§

source

fn sign<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, key_id: &'life1 KeyId, data: &'life2 [u8] ) -> Pin<Box<dyn Future<Output = Result<Signature>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Generate a Signature for the given data using the given Secret key.

Implementors§