Expand description
Shared graphforge-canonical/1 envelope and byte primitives.
Domain owners define their registered schemas and logical-value encoders. This module owns the common bounded byte writer, closed fingerprint domains, SHA-256 envelope, and UUIDv8 projection.
Structs§
- Canonical
Reader - Strict reader for the fixed-width canonical grammar.
- Canonical
Writer - Bounded writer for the fixed-width canonical grammar.
Enums§
- Canonical
Domain - Closed fingerprint domains in
graphforge-canonical/1. - Canonical
Error - Structured canonicalization failures.
Constants§
- CANONICAL_
CONTRACT_ VERSION - Frozen canonical contract version.
- MAX_
CANONICAL_ BINARY_ BYTES - Maximum binary value size in version 1.
- MAX_
CANONICAL_ PAYLOAD_ BYTES - Maximum canonical payload size in version 1.
- MAX_
CANONICAL_ TEXT_ BYTES - Maximum UTF-8 value size in version 1.
Functions§
- fingerprint
- Compute the domain-separated SHA-256 fingerprint.
- fingerprint_
preimage - Build the frozen fingerprint preimage for a canonical payload.
- uuid_v8
- Project a full canonical fingerprint into an RFC 9562 UUIDv8.