OpenAgentID documentation
Source referencesRust module referenceaegis-verify

aegis-verify · pipeline

Declared module signatures, types, configuration, and source documentation.

Source: aegis/aegis-verify/src/pipeline.rs. SHA-256: ae488b14dd9bfc2ea06b1b97ae7f8bf769baa207de423ba1e81e1a190b56393a.

This source reference follows declared modules and preserves feature attributes. It includes public declarations and implementation methods in those modules. Private-module exports and trait resolution still require the compiler; not every declaration is a crate-root import. Function bodies and constant values are omitted. Source comments describe their implementation context and are not a production deployment claim.

pipeline::VerificationPipeline

The AEGIS Verification Pipeline.

Performs complete verification of OAS identity documents per AEGIS Specification §5. The pipeline:

  1. Resolves the DID via registered resolver plugins
  2. Validates the document structure
  3. Verifies the Ed25519Signature2020 document proof
  4. Checks revocation status
  5. Verifies lineage chain to human root
  6. Checks human root liveness
  7. Computes the verified conformance level

Results are cached with a configurable TTL (max 300 seconds).

pub struct VerificationPipeline {

}

Source line: 85.

pipeline::VerificationPipeline::new

Creates a new verification pipeline.

Arguments

  • registry - The AEGIS plugin registry containing DID resolvers.
  • config - Verification configuration (timeouts, depth, cache TTL).
pub fn new(registry: Arc<PluginRegistry>, config: VerificationConfig) -> Self;

Source line: 101.

pipeline::VerificationPipeline::verify

Performs a full verification of an OAS identity document.

Returns a cached result if available and not expired. Otherwise, runs the complete verification pipeline and caches the result.

Arguments

  • did - The did:oas identifier to verify.

Returns

A [VerificationResult] containing the verification outcome.

Errors

Returns [VerificationError] if any step of the pipeline fails with an unrecoverable error (e.g., resolution failure, invalid signature).

pub async fn verify(&self, did: &str) -> Result<VerificationResult, VerificationError>;

Source line: 127.

pipeline::VerificationPipeline::verify_force_refresh

Performs a full verification bypassing the cache.

Always runs the complete pipeline regardless of cached results. The fresh result is stored in the cache, replacing any previous entry.

Arguments

  • did - The did:oas identifier to verify.

Returns

A fresh [VerificationResult].

Errors

Returns [VerificationError] if verification fails.

pub async fn verify_force_refresh(
        &self,
        did: &str,
    ) -> Result<VerificationResult, VerificationError>;

Source line: 155.

pipeline::VerificationPipeline::cache

Returns a reference to the internal cache for inspection.

pub fn cache(&self) -> &VerificationCache;

Source line: 166.

On this page