Lune

CAV2025Top-tier venue

Automated Verification of Consistency in Zero-Knowledge Proof Circuits

Jon Stephens, Shankara Pailoor, Isil Dillig

Abstract

Abstract Circuit languages like Circom and Gnark have become essential tools for programmable zero-knowledge cryptography, allowing developers to build privacy-preserving applications. These domain-specific languages (DSLs) encode both the computation to be verified (as a witness generator ) and the corresponding arithmetic circuits , from which the prover and verifier can be automatically generated. However, for these programs to be correct, the witness generator and the arithmetic circuit need to be mutually consistent in a certain technical sense, and inconsistencies can result in security vulnerabilities. This paper formalizes the consistency requirement for circuit DSLs and proposes the first automated technique for verifying it. We evaluate the method on hundreds of real-world circuits, demonstrating its utility for both automated verification and uncovering errors that existing tools are unable to detect.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

1 top-tier paper has cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • SoK: What don't we know? Understanding Security Vulnerabilities in SNARKs cites Scalable Verification of Zero-Knowledge Protocols
  • SoK: What don't we know? Understanding Security Vulnerabilities in SNARKs cites Practical Security Analysis of Zero-Knowledge Proof Circuits
  • Automating Bitvector and Finite Field Equivalence Proofs in Lean cites Scalable Verification of Zero-Knowledge Protocols
  • Automating Bitvector and Finite Field Equivalence Proofs in Lean cites Certifying Zero-Knowledge Circuits with Refinement Types
  • Certifying Zero-Knowledge Circuits with Refinement Types cites Practical Security Analysis of Zero-Knowledge Proof Circuits
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. Automating Bitvector and Finite Field Equivalence Proofs in LeanElizaveta Pertseva, Valentin Robert, Clark W. Barrett, James ParkerCAV 2026

Builds on6

  1. SoK: What don't we know? Understanding Security Vulnerabilities in SNARKsStefanos Chaliasos, Jens Ernstberger, David Theodore, David Wong et al.USENIX Security 2024 · 32 citations
  2. Practical Security Analysis of Zero-Knowledge Proof CircuitsHongbo Wen, Jon Stephens, Yanju Chen, Kostas Ferles et al.USENIX Security 2024 · 31 citations
  3. Certifying Zero-Knowledge Circuits with Refinement TypesJunrui Liu, Ian Kretz, Hanzhi Liu, Bryan Tan et al.S&P 2024 · 30 citations
  4. Scalable Verification of Zero-Knowledge ProtocolsMiguel Isabel, Clara Rodríguez-Núñez, Albert RubioS&P 2024 · 14 citations
  5. KestRel: Relational Verification using E-Graphs for Program AlignmentRobert Dickerson, Prasita Mukherjee, Benjamin DelawareOOPSLA 2025 · 3 citations

Related papers

  1. Language-Agnostic Detection of Computation-Constraint Inconsistencies in ZKP Programs Via Value InferenceArman Kolozyan, Bram Vandenbogaerde, Janwillem Swalens, Lode Hoste et al.S&P 2026 · 4 citations
  2. Automated Detection of Under-Constrained Circuits in Zero-Knowledge ProofsShankara Pailoor, Yanju Chen, Franklyn Wang, Clara Rodríguez-Núñez et al.PLDI 2023 · 24 citations
  3. Formal Verification of Circuit-Soundness in zkWasm, a General Purpose zkVMVilhelm Sjöberg, Roger Bai, Hao Chen, Xifeng Jin et al.CCS 2026
  4. zkFuzz: Foundation and Framework for Effective Fuzzing of Zero-Knowledge CircuitsHideaki Takahashi, Jihwan Kim, Suman Jana, Junfeng YangS&P 2026 · 8 citations
  5. ScaleCirc: Scaling the Analysis over Circom CircuitsJinan Jiang, Haoran Qin, Xiapu LuoASE 2025
Dusk over the sea between two cliffs drawn in fine vertical lines