DocSigner

Trait DocSigner 

Source
pub trait DocSigner: Send + Sync {
    // Required method
    fn try_sign(
        &self,
        doc: SignDoc,
    ) -> impl Future<Output = Result<DocSignature, SignatureError>> + Send;
}
Expand description

Signer capable of producing ecdsa signature using secp256k1 curve.

Required Methods§

Source

fn try_sign( &self, doc: SignDoc, ) -> impl Future<Output = Result<DocSignature, SignatureError>> + Send

Try to sign the provided sign doc.

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<T> DocSigner for T
where T: Signer<DocSignature> + Send + Sync + 'static,