NucleusDB
Verifiable Database Engine
Every write is a cryptographic commitment. Every query comes with a proof. Append-only mode makes deletion mathematically visible. A mutable working database with SQL, typed values, blob storage, vector search — and a proof surface where exact queries come with commitment proofs.
nucleusdb create --db ./records.ndb --backend merkleThree Properties, One Database
Working Database
SQL, typed values, blob storage, vector search, and multi-tenant HTTP access. A full working database you can query and modify.
Proof Surface
Exact queries come with commitment proofs. Three backends: Binary Merkle (SHA-512), IPA (Pedersen), and KZG (polynomial).
Append-Only Mode
Monotone seal chaining for audit logs and permanent records. Deletions become new immutable facts, not erasures.
Three Commitment Schemes
Choose your proof backend. Each provides different tradeoffs between proof size, verification time, and setup requirements.
SHA-512 Merkle trees for content-addressed storage. Default backend. Every key maps to a deterministic index; every value gets a proof path.
Pedersen commitment scheme with batched opening proofs. Constant-size proofs regardless of database size.
Polynomial commitment scheme with trusted setup. Single-element proofs in constant time. Requires ceremony artifacts.
Data Services
8 native types: Null, Bool, Int, Float, String, Bytes, Vector, JSON. Type-preserving storage and retrieval.
INSERT, SELECT, UPDATE, DELETE, COMMIT, VERIFY, SHOW STATUS/HISTORY, EXPORT. The cryptographic boundary is COMMIT.
kNN search over 384-dimensional embeddings. Store vectors alongside structured data in the same verifiable database.
Content-addressed blob storage with SHA-256 keys. Store large binary payloads with automatic deduplication.
Agent memory with chunk-overlap windowing, embedding generation, and fused reranking (similarity + biencoder + lexical + negation).
Monotone seal chaining makes deletion mathematically visible. Edits and deletes are logged as new immutable facts.
SQL Over a Verifiable Core
INSERT INTO data (key, value) VALUES ('temperature', 42);
COMMIT;SELECT key, value FROM data WHERE key = 'temperature'; VERIFY 'temperature';
SHOW STATUS; SHOW HISTORY; EXPORT;
SET MODE APPEND_ONLY; -- Deletes now create immutable audit entries
Key property: COMMIT is the cryptographic boundary where witnesses, CT heads, and monotone seals advance.
Discord Recorder
A concrete application built on NucleusDB: record every Discord message, edit, and delete event as append-only database entries. Each stored message includes author metadata, timestamps, attachment metadata, mention/reaction summaries, and a deterministic record seal hash.
/statusBot and database status
/verifyVerify a message record
/searchSearch recorded messages
/integrityFull database integrity check
Record schema: msg:<channel_id>:<message_id> | edit:<channel_id>:<message_id>:<timestamp> | del:<channel_id>:<message_id>:<timestamp>
Verifiable Data for Autonomous Agents
NucleusDB is the storage layer powering Agent H.A.L.O.'s tamper-proof observability.
