Sample content — the scenarios and numbers below are constructed examples, kept here until real engagement data replaces them.
Zero-knowledge/30 Oct 2026/2 min read
The economics of proof verification
Measured costs for a 256-transfer recursive batch: witness, proving, aggregation and on-chain verification — including the number that actually caps throughput.
CRG Digital Engineering
"Proving is expensive, verification is cheap" is true and useless on its own. The useful version is a table with milliseconds and dollars in it.
These are measured numbers from a settlement pipeline we benchmarked: 256 transfers per batch, Groth16 over bn254, two levels of recursion, 16-core prover host.
The batch, stage by stage
| Stage | Wall time | Notes |
|---|---|---|
| Witness generation | 2.1 s | linear in transfers; dominates at small batch sizes |
| Proving (256 proofs) | 12.4 s | 16 cores, ~0.85 s of CPU time per transfer |
| Aggregation (2 levels) | 3.8 s | 256 → 16 → 1 |
| On-chain verification | 1.9 s | 214k gas, single pairing check |
The verifier is flat: one proof verifies in 1.9 s whether it covers 1 transfer or 256. That is the entire argument for batching, and it is why the prover is often the wrong thing to optimise first.
Cost per transfer falls with batch size, then stops
| Batch | Verify (s) | Prove (s) | Cost / transfer |
|---|---|---|---|
| 1 | 1.9 | 0.9 | $0.041 |
| 16 | 1.9 | 13.6 | $0.012 |
| 256 | 1.9 | 12.4 | $0.0031 |
| 1,024 | 1.9 | 49.2 | $0.0030 |
Between 256 and 1,024 the per-transfer cost barely moves: proving scales linearly while verification is already amortised to near zero. The binding constraint stops being cryptography and becomes the batch window — how long the business can wait before settlement.
Where the money actually goes
The prover host is the expensive part: $1.40/hour for 16 cores at the time of measurement. At 12.4 s per batch, one host settles roughly 290 batches per hour — about 74,000 transfers — for $1.40. At that point, engineering time to shave 2 s off the prover is worth less than the cost of the machine it runs on.
The verifier, by contrast, is a fixed gas cost on a shared chain. At 214k gas and a 30 gwei base fee, a batch costs roughly $1.30 to verify on-chain — more than the prover host, and paid by whoever submits the batch.
Recursion is a throughput tool, not a size tool
We fold 256 proofs into one for two reasons: it keeps the on-chain call constant, and it lets different corridors prove independently and still settle together. Recursion depth beyond two bought us nothing — the aggregator's own proving cost grew faster than the verifier savings.
type Batch = {
epoch: bigint;
roots: [bigint, bigint]; // per-corridor state roots
proof: Groth16Proof; // aggregated
transferCount: number;
};
Measure the p99, not the mean
Averages hide the failure that matters: a prover that occasionally takes 90 s because witness generation hit swap. We report p50 and p99 per stage, and we alarm on p99 only. The mean is where demos live.
All figures are illustrative sample measurements, not client production data.