Repository navigation
Flat merkle tree - #174
Flat merkle tree#174
Conversation
|
| Filename | Overview |
|---|---|
| archivist/stores/repostore/treeops.nim | Adds flat-tree node persistence, validation, shape resolution, proof regeneration, and tree-node cleanup. |
| archivist/stores/repostore/overlays/overlays.nim | Extends overlay finalization and deletion to move and remove flat-tree records while coordinating writers through lifecycle states. |
| archivist/stores/repostore/operations.nim | Atomically derives and stores flat-tree metadata alongside leaf and block metadata and adds write barriers for lifecycle transitions. |
| archivist/stores/repostore/store.nim | Regenerates proofs from flat nodes for completed manifest-backed datasets while retaining stored proofs for unresolved tree shapes. |
| archivist/merkletree/flatindex.nim | Introduces validated conversions between logical Merkle-tree coordinates and flat storage indices. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Store leaves and proofs] --> B[Derive flat internal nodes]
B --> C[Persist leaf, block, overlay, and tree metadata]
C --> D[Finalize temporary overlay]
D --> E[Attach manifest and mark Completed]
E --> F[Resolve tree shape on retrieval]
F --> G[Load flat sibling nodes]
G --> H[Regenerate and verify proofs]
Reviews (8): Last reviewed commit: "fix: adapt flat tree serving to Option-p..." | Re-trigger Greptile
1012f69 to
6ab2172
Compare
8d688ce to
11d5102
Compare
11d5102 to
95177cf
Compare
95177cf to
7d70071
Compare
…cks, add dropOverlay idempotency
…es, finalize quiescence, lifecycle guards)
7d70071 to
925467e
Compare
This PR adds a flat merkle tree layout on disk, instead of the serialized proof. Proofs are now regenerated on request.