Skip to main content

VerifierKey

Trait VerifierKey 

Source
pub trait VerifierKey:
    'static
    + Sync
    + Send {
    // Required methods
    fn id(&self) -> String;
    fn algorithm(&self) -> String;
    fn verify(&self, target: &[u8], sig: &[u8]) -> Result<(), VerificationError>;
}

Required Methods§

Source

fn id(&self) -> String

Source

fn algorithm(&self) -> String

Source

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§