The content-addressed store
Every stored object is named by a hash of its ciphertext. Nothing else names it, and loot never takes a name on trust.
The address
An object is one sealed file body: ciphertext plus the nonce it was encrypted under. Its content address is BLAKE3(nonce โ ciphertext), 32 bytes, written as 64 hex digits. Most output shows a prefix, such as 5786d17f. The object lives at .loot/objects/<address>, or inside a pack keyed by the same address. Store layout has the rest of .loot/.
What gets a hash
| Thing | Its name |
|---|---|
| File content | The content address above, one object per sealed version of a file. |
| A version of a change | The version id: BLAKE3 over the author's public key, the message, the parent version ids, every path with its object address, and any versions this one supersedes. |
| A tree | Nothing. There is no separate tree object: each change records its whole manifest of path, address and tier inline, and the version id covers its paths and addresses. |
| A change | The change id is not a hash. It is 16 random bytes, a durable handle that survives rewrites (see the change DAG). |
Why ciphertext and not plaintext
Every tier is sealed, Internal included. No address is a hash of plaintext, and no object carries one. Each seal uses a fresh key and a fresh nonce, so the same bytes sealed twice get two different addresses. A store therefore can't answer "do these two files hold the same thing?" for anyone without the keys. Deduplication is by address only, which is always safe: one address is one exact run of bytes.
Within a repo, a path you don't touch keeps its object, so it keeps its address from change to change. An edit seals a new object with a new address.
What sits outside the address
An object also carries its tier, its reserved grant markers (anyone, published), any holder names, and a compression flag. None of these is hashed, and neither is the two-byte format marker at the front of the file. So marking an object published, or stripping holder names before it travels, never renames it. The version id likewise leaves out each path's tier. It also leaves out the change id, the timestamp and any recorded moves; the finalize signature covers those instead.
Derived, never declared
A bundle carries object bytes without their addresses. The receiver hashes what arrived, so a relay can't relabel an object in flight. A read from a pack re-hashes too, and loot verify rehashes every object in the store and reports any that are missing.
Because a version id hashes its parents, editing anything in history changes every id after it. Amending makes a new version rather than rewriting the old one.