Trait async_signature::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§
sourceasync fn sign_digest_async(&self, digest: D) -> Result<S, Error>
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.
Object Safety§
This trait is not object safe.