pub trait Verifier: Send + Sync { // Required methods fn algorithm(&self) -> SignatureAlgorithm; fn verify(&self, payload: &[u8], signature: &[u8]) -> Result<bool>; }
Trait for verifying signatures.
The signature algorithm expected by this verifier.
Verify a signature over the given payload.