Skip to main content

Module hash

Module hash 

Source
Expand description

Canonical content hashing for the store (docs/09-store.md).

Store keys are blake3-<hex> over the canonicalized materialized tree: entries are visited in sorted order, the executable bit is normalized, timestamps are excluded, and symlinks are hashed by target. This makes the same content hash identically across machines and filesystems.

Functionsยง

hash_bytes
Hash a byte slice, returning a blake3-<hex> key.
hash_tree
Hash a directory tree canonically, returning a blake3-<hex> store key.