Skip to main content

Module hasher

Module hasher 

Source
Expand description

Hash-function dispatch.

The cache-key derivation feeds canonicalised bytes into a single hash function per workspace invocation (CACHE-002). The set of supported functions is closed and append-only: BLAKE3 (default) and SHA-256.

Hasher is an enum because the registry is closed by design; see also docs/spec/09-caching.md CACHE-002. Adding a new variant requires bumping hash_function_id per the registry’s append-only rule.

Enums§

Hasher
Streaming hash-function dispatcher.