Skip to main content

Module model

Module model 

Source
Expand description

Minimal domain model (V1.0 NEUTRAL). Open vocabularies; policy controls acceptance.

DESIGN: EventType, EvidenceKind, and RelType are opaque string wrappers. The core provides well-known constants for convenience, but accepts ANY string. Unknown types are NOT rejected at schema stage—validation is the policy’s job.

This achieves true neutrality: healthcare, logistics, AI, and 100 other domains can extend the vocabulary without modifying proof-core.

Modules§

id_prefix
ID prefixes (wire format <prefix>:v1:<b64uNoPad(sha256)>).

Structs§

AttestationContent
Attestation content (without id and signature).
Claim
EventContent
Event content (without id). metadata is flat string→scalar, max 16 entries.
EventType
Event type (open vocabulary). The core transports any string; policy decides which types are acceptable. Well-known V1 types provided as constants.
Evidence
Evidence (without id). digest binds the material; attestation_ref and hint are optional references. IDs are derived, never stored.
EvidenceKind
Evidence kind (open vocabulary). Policy controls which kinds are acceptable.
Proof
Portable proof package (without canonical bytes). proof_id binds the proposition plus the exact member id sets (see proof-crypto::id). created_at is informational only and is NOT covered by the id.
Proposition
Machine-readable proposition: what the proof attempts to establish. description (human text) is never authoritative and is not stored here.
RelType
Relationship type (open vocabulary). Policy controls which types are acceptable.
Relationship
Relationship (without id): typed directed edge between object ids. from/to reference verified artifact ids (events, attestations, evidence, or external object ids known to the verifier). Trust-relevant types MUST carry evidence_ref or attestation_ref (enforced in proof-graph).
StoredAttestation
A stored attestation inside a Proof: content plus its COSE_Sign1 envelope.

Enums§

LifecycleStatus
Per-attestation lifecycle state, computed by verification stages TIME and REVOCATION (ARCHITECTURE §4, stages 7–8). Authority: the pipeline only. SUPERSEDED keeps evidence validity (historical record preserved); every other non-ACTIVE state fails closed.
MetaValue