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§
Sourcefn try_sign(
&self,
doc: SignDoc,
) -> impl Future<Output = Result<DocSignature, SignatureError>> + Send
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.