Trait ockam_core::vault::Signer
source ·
[−]pub trait Signer {
fn sign<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
secret_key: &'life1 Secret,
data: &'life2 [u8]
) -> Pin<Box<dyn Future<Output = Result<Signature>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
}
Expand description
Signing functionality
Required methods
Generate a signature for given data using given secret key