Skip to main content

Module at9p

Module at9p 

Source
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
CapsuleBody
CoseCompositeSignature
Delegation
HybridKeyPair
Manifest
ServiceEndpoint
ServiceEntry
Shard
ShardEntry
UpdateRecord

Enums§

ServiceType
Transport

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 (H512 in design #879 §5). Used for capsule CIDs, update-record linkage digests (prev-record-digest), and key commitments.