arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2310.13618cs.CR
收藏

智能合约中问卷结果验证的零知识证明

Zero-Knowledge Proofs for Questionnaire Result Verification in Smart Contracts

Carlos Efrain Quintero-Narvaez, Raul Monroy-Borja

AI总结:

本文提出基于Groth16零知识证明的Web3平台,在智能合约中验证问卷结果有效性的同时保护答案隐私,并发行NFT作为测试证明。

摘要:

我们提出了一个Web3平台的实现,该平台利用Groth16零知识证明方案来验证智能合约内问卷结果的有效性。我们的方法确保问卷的答案在验证过程中保持未公开状态,同时确保评估公平进行。为此,用户回答一系列问题,其答案被编码并安全传输至隐藏后端。后端随后评估用户答案,生成问卷总体结果。此外,它生成零知识证明,证明答案已根据有效约束集得到适当评估。接下来,用户将结果连同证明提交至智能合约,合约验证其有效性并发行非同质化代币(NFT)作为用户测试结果的证明。在本研究中,我们使用Circom 2实现了零知识功能,并使用Solidity部署了智能合约,从而展示了在智能合约背景下进行问卷有效性验证的实用且安全的解决方案。

英文摘要:

We present an implementation of a Web3 platform that leverages the Groth16 Zero-Knowledge Proof schema to verify the validity of questionnaire results within Smart Contracts. Our approach ensures that the answer key of the questionnaire remains undisclosed throughout the verification process, while ensuring that the evaluation is done fairly. To accomplish this, users respond to a series of questions, and their answers are encoded and securely transmitted to a hidden backend. The backend then performs an evaluation of the user's answers, generating the overall result of the questionnaire. Additionally, it generates a Zero-Knowledge Proof, attesting that the answers were appropriately evaluated against a valid set of constraints. Next, the user submits their result along with the proof to a Smart Contract, which verifies their validity and issues a non-fungible token (NFT) as an attestation of the user's test result. In this research, we implemented the Zero-Knowledge functionality using Circom 2 and deployed the Smart Contract using Solidity, thereby showcasing a practical and secure solution for questionnaire validity verification in the context of Smart Contracts.

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

↑