pub trait Signer {
// Required methods
fn algorithm(&self) -> SignatureAlgorithm;
fn signer_info(&self) -> SignerInfo;
fn sign(&self, document_id: &DocumentId) -> Result<Signature>;
}Available on crate feature
signatures only.Expand description
Trait for signing documents.
Required Methods§
Sourcefn algorithm(&self) -> SignatureAlgorithm
fn algorithm(&self) -> SignatureAlgorithm
Get the signature algorithm used by this signer.
Sourcefn signer_info(&self) -> SignerInfo
fn signer_info(&self) -> SignerInfo
Get information about the signer.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".