Expand description
Content-addressed object store — the foundation of NEDB v2.
Every document version is stored as an immutable, encrypted, BLAKE2b-hashed
object at objects/{hash[0:2]}/{hash[2:]}. Once written, objects never change.
Uncorruptable by design:
- Writes are atomic (write to .tmp → rename)
- Every read verifies the BLAKE2b hash of the content
- A partial write leaves a .tmp file that is ignored on startup
- There is no single mutable file that can be partially overwritten
Structs§
- Dek
- Encryption key material (AES-256-GCM). In v1 this was called DEK; the structure is the same.
- Node
- A single versioned document node in the DAG.
- Object
Store - Content-addressed, encrypted, tamper-evident object store.