Trait SignerProvider
Source pub trait SignerProvider {
// Required methods
fn add_key<'life0, 'life1, 'async_trait>(
&'life0 mut self,
worker_id: &'life1 str,
key_name: String,
algorithm: String,
) -> Pin<Box<dyn Future<Output = Vec<u8>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn sign_payload<'life0, 'life1, 'async_trait>(
&'life0 mut self,
worker_id: &'life1 str,
key_name: String,
payload: Payload,
) -> Pin<Box<dyn Future<Output = Result<Signature, SignError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}