Verifier

Trait Verifier 

Source
pub trait Verifier: Send + Sync {
    // Required methods
    fn verify<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        bundle: &'life1 ParsedBundle,
        artifact_path: &'life2 Path,
        policy: &'life3 Policy,
    ) -> Pin<Box<dyn Future<Output = Result<VerificationResult>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn verifier_type(&self) -> &'static str;
}
Expand description

Trait for different verification strategies

Required Methods§

Source

fn verify<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, bundle: &'life1 ParsedBundle, artifact_path: &'life2 Path, policy: &'life3 Policy, ) -> Pin<Box<dyn Future<Output = Result<VerificationResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Verify an attestation bundle against an artifact

Source

fn verifier_type(&self) -> &'static str

Get the verifier type name for logging

Implementors§