zkp:使用Groth16 zkSNARK执行和验证算法的框架-源码

上传者: 42134117 | 上传时间: 2021-09-21 17:05:12 | 文件大小: 262KB | 文件类型: ZIP
ZKP ZKP是一种实用的零知识证明系统,可提供任意计算的小型且计算效率高的零知识证明。 该系统使我们能够以廉价,快速的验证时间构造简洁的非交互式证明。 下图描述了证明生成系统的拓扑。 编译阶段 程序建设 受信任的设置 证明生成 证明验证 程序建设 程序构建是由其他库开发的,这些库发出标准的JSON协议,该协议描述了门的功能组成,这些门计算加法,乘法和带线运算。 该库可以简单地使用任何其他编译器或库来发出JSON作为其交换格式。 包提供了电路构造语言的参考库。 受信任的设置 可以从命令行运行受信任的设置。 这将生成为特定电路设置所需的一次参数。 设置参数可以随后销毁,也可以在Shamir秘密共享配置中分发。 Shamir共享允许一个n-of-m的设置,其中至少n个参与者必须组合其秘密部分以重建受信任的设置。 zkp setup --prover Groth16 --input

文件下载

资源详情

[{"title":"( 63 个子文件 262KB ) zkp:使用Groth16 zkSNARK执行和验证算法的框架-源码","children":[{"title":"zkp-master","children":[{"title":".gitignore <span style='color:#111;'> 156B </span>","children":null,"spread":false},{"title":"Dockerfile <span style='color:#111;'> 598B </span>","children":null,"spread":false},{"title":"exe","children":[{"title":"Reference.hs <span style='color:#111;'> 2.02KB </span>","children":null,"spread":false},{"title":"Setup.hs <span style='color:#111;'> 2.03KB </span>","children":null,"spread":false},{"title":"Main.hs <span style='color:#111;'> 3.99KB </span>","children":null,"spread":false},{"title":"Prove.hs <span style='color:#111;'> 1.87KB </span>","children":null,"spread":false},{"title":"Verify.hs <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false}],"spread":true},{"title":".ghcid <span style='color:#111;'> 105B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"Protocol","children":[{"title":"Groth.hs <span style='color:#111;'> 13.39KB </span>","children":null,"spread":false}],"spread":true},{"title":"Poly.hs <span style='color:#111;'> 873B </span>","children":null,"spread":false}],"spread":true},{"title":"SECURITY.md <span style='color:#111;'> 710B </span>","children":null,"spread":false},{"title":"samples","children":[{"title":"example3_fmt.json <span style='color:#111;'> 5.59KB </span>","children":null,"spread":false},{"title":"example1_fmt.json <span style='color:#111;'> 4.86KB </span>","children":null,"spread":false},{"title":"example2_fmt.json <span style='color:#111;'> 5.61KB </span>","children":null,"spread":false},{"title":"example3.json <span style='color:#111;'> 2.54KB </span>","children":null,"spread":false},{"title":"example1.json <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false},{"title":"inputs1.json <span style='color:#111;'> 15B </span>","children":null,"spread":false},{"title":"example2.json <span style='color:#111;'> 2.39KB </span>","children":null,"spread":false}],"spread":true},{"title":"README.zh.md <span style='color:#111;'> 7.05KB </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 54B </span>","children":null,"spread":false},{"title":".assets","children":[{"title":"circuit.png <span style='color:#111;'> 30.97KB </span>","children":null,"spread":false},{"title":"groth16_zh.png <span style='color:#111;'> 97.73KB </span>","children":null,"spread":false},{"title":"adjoint.png <span style='color:#111;'> 3.27KB </span>","children":null,"spread":false},{"title":"groth16.png <span style='color:#111;'> 158.01KB </span>","children":null,"spread":false}],"spread":true},{"title":"cabal.project <span style='color:#111;'> 100B </span>","children":null,"spread":false},{"title":".ghci <span style='color:#111;'> 397B </span>","children":null,"spread":false},{"title":"zkp.cabal <span style='color:#111;'> 5.28KB </span>","children":null,"spread":false},{"title":"bench","children":[{"title":"Protocol.hs <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false},{"title":"Bench.hs <span style='color:#111;'> 473B </span>","children":null,"spread":false},{"title":"Bench","children":[{"title":"Reference.hs <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"Protocol.hs <span style='color:#111;'> 1.61KB </span>","children":null,"spread":false},{"title":"Poly.hs <span style='color:#111;'> 1009B </span>","children":null,"spread":false}],"spread":false},{"title":"Poly.hs <span style='color:#111;'> 1012B </span>","children":null,"spread":false}],"spread":false},{"title":".github","children":[{"title":"workflows","children":[{"title":"cabal.yml <span style='color:#111;'> 1024B </span>","children":null,"spread":false},{"title":"stack.yml <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"spec","children":[{"title":"QAP.hs <span style='color:#111;'> 724B </span>","children":null,"spread":false},{"title":"Protolude.spec <span style='color:#111;'> 1.59KB </span>","children":null,"spread":false},{"title":"Protolude.hs <span style='color:#111;'> 187B </span>","children":null,"spread":false},{"title":"Circuit","children":[{"title":"Arithmetic.hs <span style='color:#111;'> 53B </span>","children":null,"spread":false}],"spread":false},{"title":"Data","children":[{"title":"Euclidean.hs <span style='color:#111;'> 44B </span>","children":null,"spread":false},{"title":"Field","children":[{"title":"Galois.hs <span style='color:#111;'> 89B </span>","children":null,"spread":false}],"spread":false},{"title":"Pairing","children":[{"title":"BN254.spec <span style='color:#111;'> 37B </span>","children":null,"spread":false},{"title":"BN254.hs <span style='color:#111;'> 711B </span>","children":null,"spread":false}],"spread":false},{"title":"Curve.hs <span style='color:#111;'> 757B </span>","children":null,"spread":false},{"title":"Aeson.hs <span style='color:#111;'> 58B </span>","children":null,"spread":false},{"title":"Curve.spec <span style='color:#111;'> 29B </span>","children":null,"spread":false},{"title":"Text","children":[{"title":"Prettyprint","children":[{"title":"Doc.hs <span style='color:#111;'> 327B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"Curve","children":[{"title":"Weierstrass.hs <span style='color:#111;'> 87B </span>","children":null,"spread":false}],"spread":false},{"title":"Poly.spec <span style='color:#111;'> 23B </span>","children":null,"spread":false},{"title":"Poly.hs <span style='color:#111;'> 198B </span>","children":null,"spread":false}],"spread":false},{"title":"Test","children":[{"title":"QuickCheck.hs <span style='color:#111;'> 104B </span>","children":null,"spread":false},{"title":"QuickCheck","children":[{"title":"Arbitrary","children":[{"title":"Generic.hs <span style='color:#111;'> 96B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"QAP.spec <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":false},{"title":"README.md <span style='color:#111;'> 8.38KB </span>","children":null,"spread":false},{"title":"example <span style='color:#111;'> 283B </span>","children":null,"spread":false},{"title":"package.yaml <span style='color:#111;'> 2.30KB </span>","children":null,"spread":false},{"title":"README.de.md <span style='color:#111;'> 7.96KB </span>","children":null,"spread":false},{"title":"test","children":[{"title":"Test.hs <span style='color:#111;'> 65B </span>","children":null,"spread":false},{"title":"Test","children":[{"title":"Arithmetic.hs <span style='color:#111;'> 6.95KB </span>","children":null,"spread":false},{"title":"Groth.hs <span style='color:#111;'> 5.92KB </span>","children":null,"spread":false},{"title":"Poly.hs <span style='color:#111;'> 2.01KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"ChangeLog.md <span style='color:#111;'> 49B </span>","children":null,"spread":false},{"title":"stack.yaml <span style='color:#111;'> 389B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明