Skip to main content

Crate trust_tasks_proof

Crate trust_tasks_proof 

Source
Expand description

Pluggable ProofVerifier implementations for the Trust Tasks framework.

The framework’s ProofVerifier trait is the seam where cryptosuite implementations plug in; this crate is the umbrella that hosts those implementations behind Cargo features so a single dependency line opts in to a specific backend without dragging in the others.

§Backends

Cargo featureModuleBacked by
affinidiaffinidiaffinidi-data-integrity (EdDSA suites)

✱ = enabled by default. Disable default features and opt in to the backends you want via default-features = false + an explicit features = [...] list.

§Quickstart (affinidi backend)

use trust_tasks_proof::affinidi::Verifier;
use trust_tasks_rs::ProofVerifier;

// did:key only — offline, no I/O. Good for tests and self-issued docs.
let verifier = Verifier::for_did_key();
verifier.verify(&inbound_doc).await?;

Modules§

affinidi
Verifier — a ProofVerifier implementation backed by affinidi-data-integrity.