1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// SPDX-FileCopyrightText: 2026 INTERCHAINED LLC
// SPDX-License-Identifier: BUSL-1.1
// NEDB · © 2026 INTERCHAINED LLC × Eth-Interchained × Vex (Claude Opus 5)
//! NEDB v2 — Content-addressed DAG storage engine.
//!
//! Architecture:
//!
//! objects/ — content-addressed, encrypted, BLAKE2b-verified nodes (immutable)
//! indexes/ — id index (file-per-doc) + sorted indexes (BTreeMap, in-memory)
//! graph/ — typed DAG edges (filesystem entries)
//! MANIFEST — BLAKE2b Merkle root of all collection HEADs
//!
//! Properties:
//! - Uncorruptable: atomic writes (tmp→rename), hash verification on read
//! - Parallel: no global lock on writes; each doc has its own index file
//! - Instant cold start: no AOF replay; rebuild sorted indexes in parallel
//! - Self-healing: migrate.rs handles v1→v2 on first startup
//! - Tamper-evident: BLAKE2b chain from MANIFEST → collection heads → nodes
pub use ;
pub use ;
pub use GraphStore;
pub use Db;