pub trait KeySigVerify {
// Required method
fn verify_signature(
&self,
message: &[u8],
signature: &[u8],
sig_type: Option<SignatureType>,
) -> Result<bool, Error>;
}Expand description
Signature verification operations
Required Methods§
Sourcefn verify_signature(
&self,
message: &[u8],
signature: &[u8],
sig_type: Option<SignatureType>,
) -> Result<bool, Error>
fn verify_signature( &self, message: &[u8], signature: &[u8], sig_type: Option<SignatureType>, ) -> Result<bool, Error>
Check the validity of signature over a message with the specified signature type.
Implementors§
impl KeySigVerify for Ed25519KeyPair
Available on crate feature
ed25519 only.impl KeySigVerify for K256KeyPair
Available on crate feature
k256 only.impl KeySigVerify for P256KeyPair
Available on crate features
p256 or p256_hardware only.impl KeySigVerify for P384KeyPair
Available on crate feature
p384 only.impl KeySigVerify for AnyKey
Available on crate feature
any_key only.