Language-Agnostic Detection of Computation-Constraint Inconsistencies in ZKP Programs via Value Inference
Stefanos Chaliasos (UCL Centre for Blockchain Technologies & zkSecurity), Coen De Roover (Vrije Universiteit Brussel), Lode Hoste (Nokia Bell Labs), Arman Kolozyan (Max Planck Institute for Security and Privacy), Janwillem Swalens (Nokia Bell Labs), Bram Vandenbogaerde (Vrije Universiteit Brussel)
Accepted paper presented at ZKProof 8 in Rome, May 9–10, 2026.
Speaker

Arman Kolozyan
Max Planck Institute for Security and Privacy
About this talk
At ZKProof 8 in Rome, Arman Kolozyan presented a way to automatically find a common class of bugs in zero-knowledge proof programs: mismatches between what the prover computes and what the verifier's constraints actually check. The work grew out of his master's thesis and is accepted at IEEE S&P 2026.
Where ZKP application bugs come from
Developers increasingly write their own zero-knowledge applications, such as an app that proves you are over 18 from a scan of your ID without revealing anything else. They do this in ZKP-specific languages, and in practice they must write two things by hand: the computation an honest prover performs to produce a proof, and the constraints the verifier uses to check it.
For a multiplication, the two look almost identical: compute out = a * b, then check out == a * b. But the prover side can use rich operations such as division or comparisons, while constraints are limited to addition, multiplication and equality, a restriction imposed by the cryptographic back end. That gap is where bugs creep in.
Kolozyan's running example was division. The natural constraint for out = a / b is out * b == a. An honest prover dividing by zero would simply crash. But a malicious prover can submit a fake proof claiming that 0 divided by 0 is 5, and the verifier accepts it because 5 × 0 = 0. The constraints needed a separate check that b is non-zero.
Languages offer ways to express such assumptions, like signal tags in Circom, which state that a caller must already have constrained a value (for example, that b is non-zero). Library templates rely on these assumptions heavily to avoid duplicate constraints, since every constraint costs performance. But the compiler doesn't check that callers respect them, and they are sometimes undocumented. In blockchain settings, violating them can let an attacker mint fake coins or cause losses of millions of dollars.
Contributions
A formal model of the bugs
The authors first formalize what a ZKP program is, what the prover and verifier sides do, and when a program is correct. Intuitively, a program is consistent when the set of values an honest prover can produce matches the set the verifier accepts, taking preconditions such as signal tags into account. Any value assignment that is accepted by the verifier but could never come from an honest execution, or the reverse, is an inconsistency.
This model captures several classes of vulnerabilities, including:
- Division by zero, as in the example above.
- Arithmetic overflows, where a template assumes its inputs lie in a certain range but the caller never constrains them. This can let someone "prove" that one million is less than one.
An efficient detection algorithm
Checking every possible value is impossible, since each signal ranges over a very large prime field. Instead, the algorithm approximates both sides:
- Prover side: the specification, such as signal tags, describes what an honest prover is expected to do (for example,
bis non-zero, orais at most 15). - Verifier side: the tool infers ranges of values the constraints can accept, using inference rules that exploit recurring constraint patterns. For instance, if the verifier checks
x * (x - 2) == 0, thenxcan only be 0 or 2. The authors build on inference rules from prior work, add new ones targeting the vulnerabilities they formalized, and apply them until a fixed point is reached.
If the verifier may accept a value the specification rules out, such as b = 0, the tool flags a bug. Because the analysis over-approximates, it can report false positives. The paper proves that the algorithm terminates and that the inference rules are sound.
Language-agnostic by design
Most existing tools target Circom. A survey of ZKP repositories on GitHub showed that Circom has long been the most popular language, but Noir is gaining traction, and the same bug classes can occur there. Rather than building one tool per language, the authors target an existing compiler infrastructure that translates programs from different ZKP languages into a common intermediate representation. They added Circom and Noir support to it. That representation already separates computations from constraints, and to the authors' knowledge theirs is the first tool to work at this level.
Results
On a benchmark of small programs from related work, the tool was about two orders of magnitude faster than an SMT-based formal verification tool. SMT solvers struggle with the non-linear equations common in ZKP constraints, while the value-inference approach trades some false positives for speed.
On real-world code, the authors found vulnerabilities covered by their model in programs from Microsoft (proving a mobile driver's license is valid), TikTok (in the context of trusted execution environments) and the Self identity app. Several issues were fixed after the authors contacted the teams. The bug in Self had been missed by a prior audit from a major ZKP auditing firm, and earned a bug bounty. According to the paper, the authors examined six widely used ZKP projects and found 15 previously unknown vulnerabilities, 13 of which have been patched.
From the Q&A
Asked how this compares with checking determinism, as some of Veridise's tools do, Kolozyan explained that determinism looks only at the constraint side: it catches cases where the verifier accepts two different outputs for the same input, such as proofs of being both over and under 18. But constraints alone don't say what an honest prover is supposed to do. If the prover is meant to prove someone is over 18 but the constraints deterministically check over 17, only comparing against the computation side reveals the bug. The authors therefore propose a broader definition of under-constrained programs that includes these mismatches.
Go further: watch the full talk or read the paper on IACR ePrint.
This summary was written by the conference team, not by the speaker or the paper's authors. For the authoritative account of this work, please refer to the paper on IACR ePrint.
More ZKProof 8 talks on this topic
zkVMs, tooling and formal verification
Efficient Recursion for the Jolt zkVM
Quang Dao (Carnegie Mellon University), Sagar Dhawan (a16z crypto research), Markos Georghiades (a16z crypto research), Justin Thaler (a16z crypto research & Georgetown University), Andrew Tretyakov (a16z crypto research), Michael Zhu (a16z crypto research)
Evaluating Compiler Optimization Impacts on zkVM Performance
Thomas Gassmann (ETH Zurich), Stefanos Chaliasos (Imperial College London), Thodoris Sotiropoulos (ETH Zurich), Zhendong Su (ETH Zurich)
Scribe: Low-memory SNARKs via Read-Write Streaming
Anubhav Baweja (University of Pennsylvania), Pratyush Mishra (University of Pennsylvania), Tushar Mopuri (University of Pennsylvania), Karan Newatia (University of Pennsylvania), Steve Wang (University of Pennsylvania)
Single-Server Private Outsourcing of zk-SNARKs
Kasra Abbaszadeh (University of Maryland), Hossein Hafezi (New York University), Jonathan Katz (Google), Sarah Meiklejohn (University College London / Google)
zkLean: A DSL for ZK statement verification
James Parker (Galois, Inc.), Valentin Robert (Galois, Inc.), Elizaveta Pertseva (Stanford), Benoit Razet (Galois, Inc.), Carl Kwan (Top Yield Limited), Ben Hamlin (Galois, Inc.), Brett Decker (Galois, Inc.)
