Skip to main content

VerifierKey

Trait VerifierKey 

Source
pub trait VerifierKey:
    'static
    + Sync
    + Send {
    const ALGORITHM: &'static str;

    // Required methods
    fn key_id(&self) -> String;
    fn verify(
        &self,
        target: &[u8],
        signature: &[u8],
    ) -> Result<(), VerificationError>;
}

Required Associated Constants§

Source

const ALGORITHM: &'static str

Required Methods§

Source

fn key_id(&self) -> String

Source

fn verify( &self, target: &[u8], signature: &[u8], ) -> Result<(), VerificationError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§