arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.10565cs.PLcs.CR
收藏

zkStruDul:利用结构对偶性进行zkSNARKs编程

zkStruDul: Programming zkSNARKs with Structural Duality

University of Wisconsin--Madison(威斯康星大学麦迪逊分校)

Rahul Krishnan, Ashley Samuelson, Emily Yao, Ethan Cecchetti

AI总结:

针对现有zkSNARKs工具分开实现谓词定义与输入转换易产生重复逻辑和安全漏洞的问题,提出语言zkStruDul,统一两类逻辑为单一抽象,消除代码重复与不匹配,支持递归证明且语义一致。

摘要:

非交互式零知识(NIZK)证明(例如zkSNARKs)可让证明方在不泄露私有数据、也无需与验证方交互的情况下,证明其持有私有数据。现有工具主要聚焦于指定待证明的谓词,而实际应用中会优化谓词定义以最小化证明生成开销,但必须相应地转换谓词输入。分开实现这两个步骤会产生必须精确匹配的重复逻辑,否则会引发灾难性安全漏洞。我们通过zkStruDul解决这一缺陷,该语言将输入转换与谓词定义统一为单个组合抽象,编译器可从中投影出两个流程,消除重复代码和危险的不匹配问题。zkStruDul提供可叠加在现有NIZK技术之上的高层抽象,支持递归证明等重要特性。我们给出了源码级语义,并证明其行为与投影语义完全一致,可支持直接的标准推理。

英文摘要:

Non-Interactive Zero Knowledge (NIZK) proofs, such as zkSNARKS, let one prove knowledge of private data without revealing it or interacting with a verifier. While existing tooling focuses on specifying the predicate to be proven, real-world applications optimize predicate definitions to minimize proof generation overhead, but must correspondingly transform predicate inputs. Implementing these two steps separately duplicates logic that must precisely match to avoid catastrophic security flaws. We address this shortcoming with zkStruDul, a language that unifies input transformations and predicate definitions into a single combined abstraction from which a compiler can project both procedures, eliminating duplicate code and problematic mismatches. zkStruDul provides a high-level abstraction to layer on top of existing NIZK technology and supports important features like recursive proofs. We provide a source-level semantics and prove its behavior is identical to the projected semantics, allowing straightforward standard reasoning.

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

↑