Trait AsyncDigestSigner

Source
pub trait AsyncDigestSigner<D, S>
where D: Digest,
{ // Required method async fn sign_digest_async(&self, digest: D) -> Result<S, Error>; }
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§

Source

async fn sign_digest_async(&self, digest: D) -> Result<S, Error>

Attempt to sign the given prehashed message Digest, returning a digital signature on success, or an error if something went wrong.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<D, S, T> AsyncDigestSigner<D, S> for T
where D: Digest, T: DigestSigner<D, S>,