Expand description
did:at9p capsule, update-record, and shard-manifest schema.
The structures in this module are deliberately just the durable record
grammar for #882. They encode through the existing crate::dag_cbor
deterministic codec and every byte-oriented decoder enforces the at9p R3
gate: decode(bytes).encode() == bytes, otherwise the input is rejected.
Signature verification, rotation-chain validation, witness checks, and MAC
label interpretation are later gates (#883/#884), not schema work.
Codec placement decision: the schema lives in hyprstream-pds, beside the
single DAG-CBOR implementation it reuses. The resolver/discovery crates
already depend on hyprstream-pds, so this avoids moving the codec or
creating a second CBOR layer while keeping the schema available to both PDS
and resolver code.
Structs§
- Capsule
- Capsule
Body - Cose
Composite Signature - Delegation
- Hybrid
KeyPair - Manifest
- Service
Endpoint - Service
Entry - Shard
- Shard
Entry - Update
Record
Enums§
Constants§
- CAPSULE_
SIGNATURE_ CONTEXT - CAPSULE_
VERSION - ED25519_
PUBLIC_ KEY_ LEN - ED25519_
SIGNATURE_ LEN - H512_
LEN - MANIFEST_
SIGNATURE_ CONTEXT - ML_
DSA65_ PUBLIC_ KEY_ LEN - ML_
DSA65_ SIGNATURE_ LEN - UPDATE_
SIGNATURE_ CONTEXT
Functions§
- at9p_
capsule_ cid512 - h512
- BLAKE3 extended to a 512-bit (
H512_LEN-byte) output — the at9p digest primitive (H512in design #879 §5). Used for capsule CIDs, update-record linkage digests (prev-record-digest), and key commitments.