| Crates.io | fast-certs |
| lib.rs | fast-certs |
| version | 0.1.1 |
| created_at | 2025-09-11 17:29:45.70616+00 |
| updated_at | 2025-09-11 18:02:17.034626+00 |
| description | Fast, non-ZK correctness certificates for rollups and computation. |
| homepage | |
| repository | https://github.com/10d9e/fast-certs |
| max_upload_size | |
| id | 1834200 |
| size | 123,295 |
Fast, non-ZK correctness certificates for rollups and computation.
This crate provides publicly verifiable proofs of correctness without zero-knowledge overhead.
If you need to prove correctness only (not secrecy), you can achieve orders of magnitude higher throughput than zkSNARKs or zkSTARKs — while retaining strong integrity guarantees.
O(log n)) over any dataset.Add to your Cargo.toml:
[dependencies]
fast-certs = "0.1.0"
use fast_certs::merkle::MerkleTree;
let leaves: Vec<Vec<u8>> = (0..4).map(|i| format!("leaf-{i}").into_bytes()).collect();
let tree = MerkleTree::from_leaves(&leaves);
let root = tree.root().unwrap();
let proof = tree.prove(2).unwrap();
assert!(proof.verify(&leaves[2], &root));
use fast_certs::freivalds::*;
let a = Matrix::from_fn(4, 4, |i, j| ((3*i + j) as u64));
let b = Matrix::from_fn(4, 4, |i, j| ((2*i + 7*j) as u64));
let c = mat_mul(&a, &b);
let proof = prove_freivalds(&a, &b, &c);
assert!(verify_freivalds(&a, &b, &c, &proof));
We ship a demo under examples/eth_rollup.rs:
cargo run --example eth_rollup --release
This commits to:
U256, Address)from, to, value, nonce)And produces a rollup proof:
We provide Criterion benchmarks under benches/.
Run:
cargo bench --bench eth_rollup_sig
| Accounts | Transactions | Time (ms) | TPS (K tx/s) |
|---|---|---|---|
| 2,000 | 1,000 | ~1.74 | 574 |
| 10,000 | 5,000 | ~9.13 | 547 |
| 50,000 | 10,000 | ~42.28 | 236 |
| 100,000 | 20,000 | ~89.17 | 224 |
Our rollup prover achieves ~500k TPS on commodity hardware (single-threaded, Rust, CPU-only). Even at 100k accounts and 20k transactions, throughput remains above 220k TPS. This demonstrates the power of non-ZK correctness-only certificates: blazing fast, scalable, and verifiable.
Licensed under either of:
at your option.
Inspired by: