Expand description
crypto-database
The verifiable v2/v3 distribution of NEDB: content-addressed Merkle DAG, AS OF time-travel, causal provenance, BLAKE2b tamper-evidence.
Identical to nedb-engine today; this crate is the distribution seam where
crypto-database-specific defaults will land (no flags) in a later release.
Modules§
- db
- Main DAG database — coordinates ObjectStore, IdIndex, SortedIndexes, GraphStore.
- graph
- DAG edge store — typed directed edges between node hashes.
- index
- Index store for NEDB v2.
- migrate
- Automatic v1 → v2 DAG migration.
- nql
- NQL (NEDB Query Language) parser and executor for v2 DAG storage.
- segment
- segment.rs — NEDB v3 packed object substrate.
- server
- nedbd v2 HTTP server — same /v1/databases/* API surface as v1. Drop-in replacement: Vision, itsl_mirror, all existing clients work unchanged.
- store
- Content-addressed object store — the foundation of NEDB v2.
Structs§
- Db
- Dek
- Encryption key material (AES-256-GCM). In v1 this was called DEK; the structure is the same.
- Graph
Store - IdIndex
- Per-document ID index — atomic file-per-doc, sharded across 256 subdirs.
- Node
- A single versioned document node in the DAG.
- Object
Store - Content-addressed, encrypted, tamper-evident object store.
- Sorted
Indexes - In-memory sorted index per (collection, field). Rebuilt from object store on startup. O(log n) ORDER BY queries.
Enums§
- Ordered
Value - Ordered JSON value for BTree indexes (null < bool < number < string < array < object).