Trait SignatureVerifier
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§
fn verify(&self, rule: &CompiledRule) -> Result<(), RuleError>
fn verify(&self, rule: &CompiledRule) -> Result<(), RuleError>
Verify the rule’s signature.
rule.signature is guaranteed to be Some(_) when this is called.