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§
Sourcefn 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 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
Sourcefn verifier_type(&self) -> &'static str
fn verifier_type(&self) -> &'static str
Get the verifier type name for logging