Clap:面向Plonkish证明系统的语义保持优化型嵌入式领域特定语言(eDSL)
Clap: a Semantic-Preserving Optimizing eDSL for Plonkish Proof Systems
AI总结:
针对零知识证明Plonkish电路人工优化成本高、易出漏洞的问题,提出首个Rust eDSL框架Clap,通过语义保持编译实现自动优化与形式化保证,性能优于人工优化,还可自动推导自定义门。
摘要:
Plonkish是开发零知识证明系统的主流电路格式,支撑着区块链领域的多个重大项目,这些项目承载着数十亿美元的资金,每天处理数百万笔交易。这类项目包括零知识Rollup,依赖高度人工优化的电路,而其正确性的保障需要耗费大量时间进行测试与审计。\n本文提出Clap,这是首个采用证明系统无关电路格式的Rust eDSL,可提升扩展性、支持自动优化,并为生成的约束系统提供形式化保证。Clap将生成Plonkish约束系统及其见证生成器的问题建模为语义保持的编译问题。该转换的可靠性与完备性可确保不会出现因约束不足或约束过度导致的隐蔽漏洞。实验评估表明,其自动优化的性能优于人工电路优化;该优化器还可用于从电路描述中自动推导自定义门。
英文摘要:
Plonkish is a popular circuit format for developing zero-knowledge proof systems that powers a number of major projects in the blockchain space, responsible for holding billions of dollars and processing millions of transactions per day. These projects, including zero-knowledge rollups, rely on highly hand-optimized circuits whose correctness comes at the cost of time-consuming testing and auditing. In this paper, we present Clap, the first Rust eDSL with a proof system agnostic circuit format, facilitating extensibility, automatic optimizations, and formal assurances for the resultant constraint system. Clap casts the problem of producing Plonkish constraint systems and their witness generators as a semantic-preserving compilation problem. Soundness and completeness of the transformation guarantees the absence of subtle bugs caused by under- or over-constraining. Our experimental evaluation shows that its automatic optimizations achieve better performance compared to manual circuit optimization. The optimizer can also be used to automatically derive custom gates from circuit descriptions.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。