Skip to main content

SignatureVerifier

Trait SignatureVerifier 

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

Verifies a delegation signature: signature over message under public_key. Implementations bind the concrete algorithm fleet (Ed25519, ECDSA-P256, ML-DSA, threshold aggregate verification).

Required Methods§

Source

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

Verify signature over message under public_key.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§