arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.15676cs.SEcs.CLcs.CR
收藏

AC4:用于零知识证明中电路约束的代数计算检查器

AC4: Algebraic Computation Checker for Circuit Constraints in ZKPs

Shanghai Jiao Tong University(上海交通大学);Shanghai Normal University(上海师范大学)

Qizhe Yang, Boxuan Liang, Hao Chen, Guoqiang Li

AI总结:

AC4是一种用于检测零知识证明电路中欠约束和过约束错误的工具,通过代数方法提升验证效率和准确性。

摘要:

零知识证明(ZKP)系统已引起广泛关注,并在现代密码学中扮演着基础性角色。零知识简洁非交互知识论证(zk-SNARK)协议主导了ZKP的应用,通过算术电路编程范式实现。然而,欠约束或过约束的电路可能导致错误。前者指缺乏必要约束的电路,导致意外解,使验证者接受虚假见证;后者指约束过严的电路,导致缺乏必要解,使验证者无法接受任何见证。本文介绍了一种新的方法,用于定位ZKP电路中的两种不同类型的错误。该方法涉及将算术电路约束编码为多项式方程组,并通过计算机代数系统在有限域上求解。验证结果的分类得到细化,大大增强了系统的表达能力。提出了一种工具AC4,用于表示该方法的实现。实验表明,AC4在解决率上有所提高,相比Picus和CIVER提高了29%,相比halo2-analyzer略有提高,后者是halo2电路的检查器。在可解范围内,检查时间也表现出显著提高,相比以往的努力有数量级的提升。

英文摘要:

Zero-knowledge proof (ZKP) systems have surged attention and held a fundamental role in contemporary cryptography. Zero-knowledge succinct non-interactive argument of knowledge (zk-SNARK) protocols dominate the ZKP usage, implemented through arithmetic circuit programming paradigm. However, underconstrained or overconstrained circuits may lead to bugs. The former refers to circuits that lack the necessary constraints, resulting in unexpected solutions and causing the verifier to accept a bogus witness, and the latter refers to circuits that are constrained excessively, resulting in lacking necessary solutions and causing the verifier to accept no witness. This paper introduces a novel approach for pinpointing two distinct types of bugs in ZKP circuits. The method involves encoding the arithmetic circuit constraints to polynomial equation systems and solving them over finite fields by the computer algebra system. The classification of verification results is refined, greatly enhancing the expressive power of the system. A tool, AC4, is proposed to represent the implementation of the method. Experiments show that AC4 demonstrates a increase in the solved rate, showing a 29% improvement over Picus and CIVER, and a slight improvement over halo2-analyzer, a checker for halo2 circuits. Within a solvable range, the checking time has also exhibited noticeable improvement, demonstrating a magnitude increase compared to previous efforts.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑