Trait Verifier

Source
pub trait Verifier: Debug {
    // Required method
    fn verify(
        &self,
        agent_info: &AgentInfo,
        message: &[u8],
        signature: &[u8],
    ) -> bool;
}
Expand description

Defines a type capable of cryptographic verification.

Required Methods§

Source

fn verify( &self, agent_info: &AgentInfo, message: &[u8], signature: &[u8], ) -> bool

Verify the provided detached signature over the provided message. Returns true if the signature is valid.

Implementors§