Expand description
Schema-version prefix (CACHE-003).
Every cache key incorporates a two-byte prefix before its other
components: a chapter_revision byte and a hash_function_id
byte. The two bytes are kept distinct so the cross-product of
chapter revisions and hash functions yields a unique prefix for
every pair. Combining them via XOR or addition before hashing is
a normative violation (CACHE-003).
Constants§
- CHAPTER_
REVISION - Revision of the cache-key composition rules in
docs/spec/09-caching.md.
Functions§
- hash_
function_ id - The single byte identifying
algoin the cache-key prefix, matching the registry inCACHE-002. - schema_
version_ prefix - The two-byte schema-version prefix for
algo.