Expand description
Content addresses, and the canonical writer every object is hashed through.
An address is blake3:<64 hex>. The tagged spelling is the repo’s existing
convention — computeLayerId and computeStackHash in
packages/ifcx/src/canonical.ts emit the same shape — so an address is
self-describing and a future algorithm change is visible rather than silent.
BLAKE3 over SHA-256 for throughput at model scale, and over the faster non-cryptographic options because a content address must be collision-resistant: an attacker-supplied IFC must not be able to forge a node id that collides with one already in the store.
Structs§
- Address
- A content address: the digest of an object’s canonical encoding.
- Canonical
Writer - The canonical byte writer.
Enums§
- Address
Error - Why a tagged address could not be read.
Constants§
- ADDRESS_
ALGORITHM - Algorithm tag carried by every address this crate mints.
Functions§
- canonical_
bytes - NFC-normalized UTF-8 bytes: the sort key, and the bytes the encoder writes.
- sort_
key - Sort key over
canonical_bytes. Named separately because the call sites read better, and because sorting and encoding must demonstrably use one function — that identity is the whole point of the rule above.