Skip to main content

Module schema

Module schema 

Source
Expand description

Closed schemas for Event / Attestation / Evidence / Relationship / Proof (FORMAT §4). Unknown fields and unknown enum variants are rejected (fail closed).

Functions§

attestation_to_cbor
cbor_to_attestation
cbor_to_event
CBOR → domain with closed validation.
cbor_to_evidence
cbor_to_proof
Closed validation of the full Proof envelope (member bytes are NOT cryptographically verified here — that is the pipeline’s job).
cbor_to_proposition
cbor_to_relationship
event_to_cbor
Domain → canonical-model CBOR (maps are sorted at encode time).
evidence_to_cbor
proof_to_cbor
proposition_to_cbor
relationship_to_cbor