pub trait SignatureVerifier {
// Required methods
fn alg_id(&self) -> SignatureAlgId;
fn verify(
&self,
key: &VerifyingKey,
msg: &[u8],
sig: &[u8],
) -> Result<(), SignatureError>;
}
Expand description
Signature verifier.
Required Methods§
sourcefn alg_id(&self) -> SignatureAlgId
fn alg_id(&self) -> SignatureAlgId
Returns the algorithm used by this verifier.
sourcefn verify(
&self,
key: &VerifyingKey,
msg: &[u8],
sig: &[u8],
) -> Result<(), SignatureError>
fn verify( &self, key: &VerifyingKey, msg: &[u8], sig: &[u8], ) -> Result<(), SignatureError>
Verifies the signature.