Zero-knowledge compilation proves binaries match claimed source code
Compiling software inside a zkVM yields a cryptographic proof that the binary was produced from the claimed source and compiler, blocking provenance attacks
Software arXiv 12 Feb 2026 Method Prototype evidence
Published as “Verifiable Provenance of Software Artifacts with Zero-Knowledge Compilation”
Why it matters
The technique enables cryptographic software provenance without hardware attestation or full reproducible builds, but the high proof-generation cost and large proof sizes may restrict its use to scenarios where verification is performed rarely or where strong supply-chain guarantees are required.
Summary
The authors demonstrate that a zero-knowledge virtual machine can be used to produce cryptographic proofs of compilation, and they successfully generated and verified such proofs for all 252 programs (200 synthetic Csmith programs, 31 OpenSSL files, and 21 libsodium files). Their experiments show that the approach detects source-code tampering, compiler substitution, binary manipulation, and replay attacks. However, the zk-compilation step is much slower than ordinary compilation (median 78.91 s vs 0.009 s) and proof sizes can reach over 100 MB, which may limit practical deployment.
What they found 2
- All evaluated programs were successfully compiled and verified with zk-proofs of provenance.
“All 252 programs are successfully zk-compiled and verified with cryptographic proofs of provenance.”
- Verification remains relatively fast, taking about 50 s per program regardless of size.
“For random Csmith programs, verification takes between 47,93 s and 68,75 s, with a median of 49,88 s”
Caveats 4
- The zk-compilation overhead is substantial, being four orders of magnitude slower than normal compilation.
- Proof (receipt) sizes grow with program size, reaching over 100 MB for the largest test case.
- The zk-compilation overhead compared to standard compilation is substantial.
- receipt sizes grow proportionally with source size, from hundreds of kilobytes for the smallest programs to over 100 MB for the largest
What’s new here 4
- Provides a cryptographic proof of compilation without requiring reproducible builds or re-execution of the compiler.
- Avoids reliance on trusted hardware by using a zero-knowledge virtual machine instead of TEEs.
- Works with an unmodified off-the-shelf compiler (ChibiCC) and can be applied to any compiler that can run inside the zkVM.
- Detects source, compiler, binary tampering and replay attacks via succinct proofs.