Skip to main content

SignatureVerifier

Trait SignatureVerifier 

Source
pub trait SignatureVerifier: Send + Sync {
    // Required method
    fn verify(&self, rule: &CompiledRule) -> Result<(), RuleError>;
}
Expand description

Pluggable signature verifier.

Implementations decide the signature format (Ed25519, RSA-PSS, etc.). Returning Ok(()) means the rule’s signature field matched the PTX bytes under the verifier’s policy.

Required Methods§

Source

fn verify(&self, rule: &CompiledRule) -> Result<(), RuleError>

Verify the rule’s signature.

rule.signature is guaranteed to be Some(_) when this is called.

Implementors§