Skip to main content

Pipeline

Struct Pipeline 

Source
pub struct Pipeline<'a> {
    pub bundle: &'a TrustAnchorBundle,
    pub graph: &'a TrustGraph,
    pub registry: &'a Registry,
    pub verifier: &'a dyn SignatureVerifier,
    pub revocation: &'a dyn RevocationView,
    pub transparency: TransparencyInputs,
    pub freshness: FreshnessWindow,
    pub classification: &'a dyn ClassificationPolicy,
    pub acceptance: &'a AcceptancePolicy,
}
Expand description

The ordered verification pipeline.

Fields§

§bundle: &'a TrustAnchorBundle

Anchor bundle (offline trust starting point).

§graph: &'a TrustGraph

The trust graph (delegation DAG).

§registry: &'a Registry

Scheme registries.

§verifier: &'a dyn SignatureVerifier

Signature verifier fleet.

§revocation: &'a dyn RevocationView

Revocation state view (CRLs and hash bindings).

§transparency: TransparencyInputs

Soft-check inputs from transparency and time verification.

§freshness: FreshnessWindow

Time-freshness window.

§classification: &'a dyn ClassificationPolicy

Classification policy (scheme-defined).

§acceptance: &'a AcceptancePolicy

Acceptance policy (verifier-defined).

Implementations§

Source§

impl<'a> Pipeline<'a>

Source

pub fn new( bundle: &'a TrustAnchorBundle, graph: &'a TrustGraph, registry: &'a Registry, verifier: &'a dyn SignatureVerifier, revocation: &'a dyn RevocationView, transparency: TransparencyInputs, acceptance: &'a AcceptancePolicy, ) -> Self

A pipeline with the reference classification policy.

Source

pub fn with_classification(self, policy: &'a dyn ClassificationPolicy) -> Self

Override the classification policy.

Source

pub fn with_freshness(self, window: FreshnessWindow) -> Self

Override the freshness window.

Source

pub fn run( &self, artifact: &TrustedArtifact, now: DateTime<Utc>, ) -> SignatifResult<VerificationOutcome>

Run the pipeline. Hard checks in order: bundle validity, format validity + registry status, co-signature verification, chain path-finding (scope narrowing per link), revocation status. Soft checks accumulate: transparency, time anchor, multi-log quorum, dimension coverage, root diversity.

§Errors

Returns the first hard failure encountered; the error is the machine-readable reason, the caller short-circuits to the rejected label.

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for Pipeline<'a>

§

impl<'a> !Send for Pipeline<'a>

§

impl<'a> !Sync for Pipeline<'a>

§

impl<'a> !UnwindSafe for Pipeline<'a>

§

impl<'a> Freeze for Pipeline<'a>

§

impl<'a> Unpin for Pipeline<'a>

§

impl<'a> UnsafeUnpin for Pipeline<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.