Skip to content
Concept

Zero-knowledge databases, explained from first principles.

The reference on zero-knowledge databases — what they are, how a SQL query becomes a verifiable proof, and where the technology fits among FHE, MPC, TEEs, and differential privacy.

11 explainersUpdated May 2026
zkDB concept library — an abstract geometric library of zero-knowledge database knowledge, ordered from first principles to architecture.
A field ordered — from first principles to architecture.
The building blocks

How the pieces fit together.

Each idea below answers a why, not just a what — the role it plays in turning a private query into a public proof. Follow any one for the full treatment.

Zero-knowledge proofs

For decades, being convinced of a claim and seeing the data behind it were the same act. A zero-knowledge proof severs that link — a claim becomes checkable without the data ever changing hands. Everything else here is built on it.

Commitments — KZG & IPA

A proof must be about the real dataset, not a convenient substitute. A commitment reduces the data to a short fingerprint, published once; alter a single row afterward and every proof against it fails. KZG keeps proofs tiny but needs a setup ceremony; IPA needs none.

Arithmetization & PLONKish

A proof system cannot reason about SQL directly — the query must first become polynomial constraints. PLONKish is the translation style that makes this efficient for databases, because it admits custom gates and lookups instead of forcing everything through generic multiplication.

Custom gates

Each SQL operator — a filter, a join, an aggregate — has its own algebra. A custom gate encodes one operator as a purpose-built constraint, and the gates compose into a circuit the way a query planner composes operators. That gate library is the durable asset across engagements.

Lookup arguments

Range checks (WHERE … BETWEEN) and set membership (IN) are ruinously expensive in older proof systems. A lookup proves a value sits in a precomputed table in time independent of the table’s size — turning the most common predicates from a bottleneck into a single step.

Halo2

The framework that takes these primitives to production. zkDB circuits are built on it; it offers transparent proofs (no setup) or succinct ones (small, with a ceremony), and folds long query pipelines into a single short proof through recursion.

Trust topology

The deepest change is institutional, not mathematical. Verifiability collapses the chain of auditors, attestations, and vendor assurances into one artifact anyone can check — turning trust from something you extend into something you compute.