pub trait Signer: Send + Sync { // Required methods fn algorithm(&self) -> SignatureAlgorithm; fn sign(&self, payload: &[u8]) -> Result<Vec<u8>>; }
Trait for signing data.
The signature algorithm used by this signer.
Sign the provided payload, returning the raw signature bytes.