pub trait Verifier: Send {
// Required methods
fn algorithm_name(&self) -> &str;
fn verify(
&self,
message: &[u8],
signature: &Signature,
public_key: &PublicKey
) -> Result<bool, VerificationError>;
}
Expand description
Verifies message signatures
Required Methods§
sourcefn algorithm_name(&self) -> &str
fn algorithm_name(&self) -> &str
Return the algorithm name used for verification.