Lune

S&P2024顶会

Certifying Zero-Knowledge Circuits with Refinement Types

Junrui Liu, Ian Kretz, Hanzhi Liu, Bryan Tan, Jonathan Wang, Yi Sun, Luke Pearson, Anders Miltner, Isil Dillig, Yu Feng

摘要

Zero-knowledge (ZK) proof systems have emerged as a promising solution for building security-sensitive applications. However, bugs in ZK applications are extremely difficult to detect and can allow a malicious party to silently exploit the system without leaving any observable trace. This paper presents Coda, a novel statically-typed language for building zero-knowledge applications. Critically, Coda makes it possible to formally specify and statically check properties of a ZK application through a rich refinement type system. One of the key challenges in formally verifying ZK applications is that they require reasoning about polynomial equations over large prime fields that go beyond the capabilities of automated theorem provers. Coda mitigates this challenge by generating a set of Coq lemmas that can be proven in an interactive manner with the help of a tactic library. We have used Coda to re-implement 77 arithmetic circuits from widely-used Circom libraries and applications. Our evaluation shows that Coda makes it possible to specify important and formally verify correctness properties of these circuits. Our evaluation also revealed 6 previously-unknown vulnerabilities in the original Circom projects.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 11 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Integer Reasoning Modulo Different Constants in SMT 引用了 Practical Security Analysis of Zero-Knowledge Proof Circuits
  • Integer Reasoning Modulo Different Constants in SMT 引用了 Simple High-Level Code for Cryptographic Arithmetic - With Proofs, Without Compromises
  • Integer Reasoning Modulo Different Constants in SMT 引用了 Satisfiability Modulo Finite Fields
  • Integer Reasoning Modulo Different Constants in SMT 引用了 Split Gröbner Bases for Satisfiability Modulo Finite Fields
  • zkFuzz: Foundation and Framework for Effective Fuzzing of Zero-Knowledge Circuits 引用了 Practical Security Analysis of Zero-Knowledge Proof Circuits
  • zkFuzz: Foundation and Framework for Effective Fuzzing of Zero-Knowledge Circuits 引用了 ConsCS: Effective and Efficient Verification of Circom Circuits
  • Satisfiability Modulo Finite Fields 引用了 Simple High-Level Code for Cryptographic Arithmetic - With Proofs, Without Compromises
  • Split Gröbner Bases for Satisfiability Modulo Finite Fields 引用了 Practical Security Analysis of Zero-Knowledge Proof Circuits
  • Split Gröbner Bases for Satisfiability Modulo Finite Fields 引用了 Simple High-Level Code for Cryptographic Arithmetic - With Proofs, Without Compromises
  • Split Gröbner Bases for Satisfiability Modulo Finite Fields 引用了 Satisfiability Modulo Finite Fields
  • ConsCS: Effective and Efficient Verification of Circom Circuits 引用了 Practical Security Analysis of Zero-Knowledge Proof Circuits
  • Automated Verification of Consistency in Zero-Knowledge Proof Circuits 引用了 Practical Security Analysis of Zero-Knowledge Proof Circuits
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper11

  1. zkFuzz: Foundation and Framework for Effective Fuzzing of Zero-Knowledge CircuitsHideaki Takahashi, Jihwan Kim, Suman Jana, Junfeng YangS&P 2026 · 8 次引用
  2. Split Gröbner Bases for Satisfiability Modulo Finite FieldsAlex Ozdemir, Shankara Pailoor, Alp Bassa, Kostas Ferles 等CAV 2024 · 4 次引用
  3. ConsCS: Effective and Efficient Verification of Circom CircuitsJinan Jiang, Xinghao Peng, Jinzhao Chu, Xiapu LuoICSE 2025 · 2 次引用
  4. Automated Verification of Consistency in Zero-Knowledge Proof CircuitsJon Stephens, Shankara Pailoor, Isil DilligCAV 2025 · 2 次引用
  5. Integer Reasoning Modulo Different Constants in SMTElizaveta Pertseva, Alex Ozdemir, Shankara Pailoor, Alp Bassa 等CAV 2025 · 1 次引用

它引用的 Paper5

  1. Simple High-Level Code for Cryptographic Arithmetic - With Proofs, Without CompromisesAndres Erbsen, Jade Philipoom, Jason Gross, Robert Sloan 等S&P 2019 · 147 次引用
  2. Practical Security Analysis of Zero-Knowledge Proof CircuitsHongbo Wen, Jon Stephens, Yanju Chen, Kostas Ferles 等USENIX Security 2024 · 31 次引用
  3. SolType: refinement types for arithmetic overflow in solidityBryan Tan, Benjamin Mariano, Shuvendu K. Lahiri, Isil Dillig 等POPL 2022 · 29 次引用
  4. Proving UNSAT in Zero KnowledgeNing Luo, Timos Antonopoulos, William R. Harris, Ruzica Piskac 等CCS 2022 · 14 次引用
  5. Satisfiability Modulo Finite FieldsAlex Ozdemir, Gereon Kremer, Cesare Tinelli, Clark W. BarrettCAV 2023 · 14 次引用

相关 Paper

  1. Scalable Verification of Zero-Knowledge ProtocolsMiguel Isabel, Clara Rodríguez-Núñez, Albert RubioS&P 2024 · 14 次引用
  2. Automated Detection of Under-Constrained Circuits in Zero-Knowledge ProofsShankara Pailoor, Yanju Chen, Franklyn Wang, Clara Rodríguez-Núñez 等PLDI 2023 · 24 次引用
  3. Tabby: A Synthesis-Aided Compiler for High-Performance Zero-Knowledge Proof CircuitsJunrui Liu, Jiaxin Song, Yanning Chen, Hanzhi Liu 等OOPSLA 2025
  4. Language-Agnostic Detection of Computation-Constraint Inconsistencies in ZKP Programs Via Value InferenceArman Kolozyan, Bram Vandenbogaerde, Janwillem Swalens, Lode Hoste 等S&P 2026 · 4 次引用
  5. Bounded Verification for Finite-Field-Blasting - In a Compiler for Zero Knowledge ProofsAlex Ozdemir, Riad S. Wahby, Fraser Brown, Clark W. BarrettCAV 2023 · 11 次引用
黄昏的海面,两侧是细线勾勒的悬崖