Trait async_signature::AsyncDigestSigner
source · [−]pub trait AsyncDigestSigner<D, S> where
Self: Send + Sync,
D: Digest + Send + 'static,
S: Signature + 'static, {
fn sign_digest_async<'life0, 'async_trait>(
&'life0 self,
digest: D
) -> Pin<Box<dyn Future<Output = Result<S, Error>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
}Available on crate feature
digest only.Expand description
Asynchronously sign the given prehashed message Digest using Self.
This trait is an async equivalent of the signature::DigestSigner trait.
Required Methods
Attempt to sign the given prehashed message Digest, returning a
digital signature on success, or an error if something went wrong.