Nov 13 - Nov 19, 2026
The live demonstration can be accessed at starked-bitcoin demo, with its source code available on GitHub. This approach produces a single 1.6 MB proof file—referred to as a "seal"—which can be verified in approximately half a second directly within a browser. The proof substantiates three primary claims: it validates the header chain from genesis to the tip (enforcing SHA256d linkage, proof-of-work, retargeting, and chainwork calculations); it fully replays blocks 935,001 through 972,500, verifying Merkle roots, transaction identifiers, structural rules, and UTXO set transitions; and it confirms that the resulting UTXO snapshot matches the hash_serialized output produced by Bitcoin Core, facilitating independent verification. A Merkle root is also committed over the resulting set, allowing efficient inclusion or exclusion proofs for specific outpoints, which are supported in the demonstration by downloading only relevant segments.
Some inherent limitations are present in this system. Script validation and signature checks are omitted, so the trust assumptions align with those made under Bitcoin Core’s assumevalid policy, although all witness data is incorporated to enable future script validation modules without the need to re-prove earlier work. The replayed segment starts from Core’s assumeUTXO snapshot at block 935,000, whose hash is checked against the value pinned in Core’s consensus parameters; prior blocks are covered solely by their headers. This mirrors the trust model accepted by assumeUTXO users, as constructing a full-from-genesis proof would require substantial computational resources—proving the entire chain from genesis is estimated to demand about 325 H100-hours of compute time, incurring significant cost. The project remains open to external review and scrutiny.
The technical foundation utilizes Stwo—an implementation of circle STARKs over M31, ported to Zig (Stwo-Zig repository)—with GPU acceleration enabling rapid proof generation. Proofs are recursively aggregated by epoch, then merged into a single encompassing seal that binds together the header chain, block data, and UTXO state. Circuits are specified in Lean 4, with constraints exported for use by the Zig-based prover. Machine-checked proofs assure correctness across header validation, SHA-256 computations, block validation, UTXO set transitions, and recursive composition. Specification fidelity is maintained through comprehensive differential fuzz testing against Bitcoin Core’s C++ implementation, confirming behavioral alignment across hundreds of thousands of test cases. The trust model assumes the soundness of Stwo, FRI, LogUp, and the Fiat–Shamir heuristic within the random oracle model, as discussed in this delvingbitcoin.org thread, alongside a minimal set of native verifier checks. Full details on what is proven and what remains trusted are documented in verification.md.
A practical utility, verify-snapshot, emerges from this framework, enabling users to check an assumeUTXO snapshot—using a Core dumptxoutset file—against the seal. This process verifies key properties such as the base block, coin count, total amount, and hash_serialized. Notably, a snapshot at block 972,500 (encompassing over 164 million coins and occupying 9.39 GB) was verified in seventy-two seconds using just 0.5 GB of RAM on an arm64 machine running Core v31.1. Of this time, nearly the entirety is spent reading the snapshot from disk and recomputing its hash; the cryptographic proof verification itself takes only around 0.5 seconds in-browser via wasm. While Groth16 zero-knowledge proof wrapping could reduce the proof size substantially—from 1.6 MB down to several hundred bytes—this comes at the cost of requiring a trusted setup and abandoning the hash-only, plausibly post-quantum security offered by STARKs. For now, maintaining these security properties is prioritized over minimizing proof size.
Lean's formalization capabilities promise significant advances in cryptographic protocol assurance, particularly where conventional fuzzing falls short in ensuring security. Batch signature verification is identified as a promising direction for improving computational efficiency in blockchain systems. Although operations involving secp256k1 remain resource-intensive for STARKs, hardware accelerators like [RiscZero](https://www.risczero
TLDR
We’ll email you summaries of the latest discussions from high signal bitcoin sources, like bitcoin-dev, lightning-dev, and Delving Bitcoin.
We'd love to hear your feedback on this project.
Give Feedback