KeySigVerify

Trait KeySigVerify 

Source
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§

Source

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§

Source§

impl KeySigVerify for Ed25519KeyPair

Available on crate feature ed25519 only.
Source§

impl KeySigVerify for K256KeyPair

Available on crate feature k256 only.
Source§

impl KeySigVerify for P256KeyPair

Available on crate features p256 or p256_hardware only.
Source§

impl KeySigVerify for P384KeyPair

Available on crate feature p384 only.
Source§

impl KeySigVerify for AnyKey

Available on crate feature any_key only.