pub trait Verifier {
type Signature;
type Error;
// Required methods
fn verify(
&self,
message: &[u8],
signature: &Self::Signature,
) -> Result<bool, Self::Error>;
fn verify_prehashed(
&self,
digest: &[u8],
signature: &Self::Signature,
) -> Result<bool, Self::Error>;
}Expand description
A type that can verify cryptographic signatures.