snarkjs:JavaScript和WASM中的zkSNARK实现-源码

上传者: 42134038 | 上传时间: 2021-09-16 10:44:27 | 文件大小: 919KB | 文件类型: ZIP
Snarkjs 这是zkSNARK方案的JavaScript和Pure Web Assembly实现。 它使用Groth16协议(仅3点和3对)。 该库包括执行受信任的设置多方仪式所需的所有工具:包括仪式的通用以及第二阶段电路特定的仪式。 任何zk-snark项目都可以从公共阶段1进行回合,开始其特定于电路的阶段2仪式。 该库中用于多方计算的格式与和使用的格式兼容。 该库使用由编译器生成的编译电路。 它既可以在 ,也可以直接在。 这是一个,因此可以使用或将其直接导入到更大的项目中。 低级加密直接在wasm执行,并使用工作线程并行化计算。 结果是一个高性能的库,其基准可与主机实现相媲美。 初赛 安装节点v14 首先,请确保您已安装最新版本的Node.js 尽管v12之后的任何版本都可以正常运行,但我们建议您安装v14或更高版本。 如果不确定安装的是哪个版本的Node,可以

文件下载

资源详情

[{"title":"( 77 个子文件 919KB ) snarkjs:JavaScript和WASM中的zkSNARK实现-源码","children":[{"title":"snarkjs-master","children":[{"title":"config","children":[{"title":"rollup.cli.config.js <span style='color:#111;'> 376B </span>","children":null,"spread":false},{"title":"rollup.iife.config.js <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"rollup.iife_min.config.js <span style='color:#111;'> 303B </span>","children":null,"spread":false},{"title":"rollup.cjs.config.js <span style='color:#111;'> 336B </span>","children":null,"spread":false}],"spread":true},{"title":"package.json <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false},{"title":"templates","children":[{"title":"verifier_groth16.sol <span style='color:#111;'> 9.29KB </span>","children":null,"spread":false}],"spread":true},{"title":".github","children":[{"title":"workflows","children":[{"title":"tutorial.yml <span style='color:#111;'> 4.91KB </span>","children":null,"spread":false},{"title":"tests.yml <span style='color:#111;'> 497B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"fullprocess.js <span style='color:#111;'> 4.01KB </span>","children":null,"spread":false},{"title":"circuit","children":[{"title":"circuit.circom <span style='color:#111;'> 280B </span>","children":null,"spread":false},{"title":"circuit.wasm <span style='color:#111;'> 34.73KB </span>","children":null,"spread":false},{"title":"circuit.r1cs <span style='color:#111;'> 160.29KB </span>","children":null,"spread":false}],"spread":true},{"title":"keypar_test.js <span style='color:#111;'> 4.61KB </span>","children":null,"spread":false}],"spread":true},{"title":".eslintrc.cjs <span style='color:#111;'> 544B </span>","children":null,"spread":false},{"title":"package-lock.json <span style='color:#111;'> 217.92KB </span>","children":null,"spread":false},{"title":"circuit_final.zkey.json <span style='color:#111;'> 3.54KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"powersoftau_import.js <span style='color:#111;'> 7.70KB </span>","children":null,"spread":false},{"title":"zkey_new.js <span style='color:#111;'> 19.79KB </span>","children":null,"spread":false},{"title":"powersoftau_export_json.js <span style='color:#111;'> 2.38KB </span>","children":null,"spread":false},{"title":"groth16_verify.js <span style='color:#111;'> 2.63KB </span>","children":null,"spread":false},{"title":"wtns.js <span style='color:#111;'> 169B </span>","children":null,"spread":false},{"title":"zkey_export_verificationkey.js <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"groth16_fullprove.js <span style='color:#111;'> 343B </span>","children":null,"spread":false},{"title":"zkey_verify_fromr1cs.js <span style='color:#111;'> 467B </span>","children":null,"spread":false},{"title":"zkey_export_solidityverifier.js <span style='color:#111;'> 2.39KB </span>","children":null,"spread":false},{"title":"groth16_prove.js <span style='color:#111;'> 12.32KB </span>","children":null,"spread":false},{"title":"powersoftau_utils.js <span style='color:#111;'> 10.22KB </span>","children":null,"spread":false},{"title":"powersoftau_preparephase2.js <span style='color:#111;'> 4.35KB </span>","children":null,"spread":false},{"title":"wtns_debug.js <span style='color:#111;'> 1.68KB </span>","children":null,"spread":false},{"title":"zkey_verify_frominit.js <span style='color:#111;'> 13.67KB </span>","children":null,"spread":false},{"title":"groth16.js <span style='color:#111;'> 169B </span>","children":null,"spread":false},{"title":"r1cs_print.js <span style='color:#111;'> 917B </span>","children":null,"spread":false},{"title":"powersoftau_export_challenge.js <span style='color:#111;'> 3.13KB </span>","children":null,"spread":false},{"title":"powersoftau_truncate.js <span style='color:#111;'> 1.85KB </span>","children":null,"spread":false},{"title":"zkey_beacon.js <span style='color:#111;'> 4.12KB </span>","children":null,"spread":false},{"title":"zkey_contribute.js <span style='color:#111;'> 3.41KB </span>","children":null,"spread":false},{"title":"zkey_utils.js <span style='color:#111;'> 12.96KB </span>","children":null,"spread":false},{"title":"powersoftau_convert.js <span style='color:#111;'> 4.85KB </span>","children":null,"spread":false},{"title":"loadsyms.js <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"r1cs.js <span style='color:#111;'> 160B </span>","children":null,"spread":false},{"title":"zkey_bellman_contribute.js <span style='color:#111;'> 5.67KB </span>","children":null,"spread":false},{"title":"powersoftau_contribute.js <span style='color:#111;'> 6.21KB </span>","children":null,"spread":false},{"title":"taskmanager.js <span style='color:#111;'> 5.23KB </span>","children":null,"spread":false},{"title":"bigarray.js <span style='color:#111;'> 2.14KB </span>","children":null,"spread":false},{"title":"powersoftau.js <span style='color:#111;'> 746B </span>","children":null,"spread":false},{"title":"r1cs_info.js <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"zkey_export_json.js <span style='color:#111;'> 201B </span>","children":null,"spread":false},{"title":"zkey.js <span style='color:#111;'> 738B </span>","children":null,"spread":false},{"title":"wtns_calculate.js <span style='color:#111;'> 698B </span>","children":null,"spread":false},{"title":"solidity.js <span style='color:#111;'> 190B </span>","children":null,"spread":false},{"title":"clprocessor.js <span style='color:#111;'> 7.65KB </span>","children":null,"spread":false},{"title":"zkey_import_bellman.js <span style='color:#111;'> 7.44KB </span>","children":null,"spread":false},{"title":"powersoftau_verify.js <span style='color:#111;'> 18.66KB </span>","children":null,"spread":false},{"title":"r1cs_export_json.js <span style='color:#111;'> 817B </span>","children":null,"spread":false},{"title":"powersoftau_challenge_contribute.js <span style='color:#111;'> 4.01KB </span>","children":null,"spread":false},{"title":"wtns_export_json.js <span style='color:#111;'> 158B </span>","children":null,"spread":false},{"title":"powersoftau_new.js <span style='color:#111;'> 3.30KB </span>","children":null,"spread":false},{"title":"powersoftau_beacon.js <span style='color:#111;'> 6.63KB </span>","children":null,"spread":false},{"title":"mpc_applykey.js <span style='color:#111;'> 2.17KB </span>","children":null,"spread":false},{"title":"wtns_utils.js <span style='color:#111;'> 1.98KB </span>","children":null,"spread":false},{"title":"keypair.js <span style='color:#111;'> 2.01KB </span>","children":null,"spread":false},{"title":"zkey_export_bellman.js <span style='color:#111;'> 4.45KB </span>","children":null,"spread":false},{"title":"misc.js <span style='color:#111;'> 4.32KB </span>","children":null,"spread":false},{"title":"curves.js <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false}],"spread":false},{"title":"main.js <span style='color:#111;'> 217B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 973B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 19.50KB </span>","children":null,"spread":false},{"title":"scripts","children":[{"title":"prover2_fftext.js <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"prover_fftext.js <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"verify_fftext.js <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"lagrange_fftext.js <span style='color:#111;'> 2.03KB </span>","children":null,"spread":false}],"spread":true},{"title":"COPYING <span style='color:#111;'> 34.31KB </span>","children":null,"spread":false},{"title":"cli.js <span style='color:#111;'> 29.77KB </span>","children":null,"spread":false},{"title":"build","children":[{"title":"main.cjs <span style='color:#111;'> 171.20KB </span>","children":null,"spread":false},{"title":"snarkjs.min.js <span style='color:#111;'> 583.40KB </span>","children":null,"spread":false},{"title":"snarkjs.js <span style='color:#111;'> 3.33MB </span>","children":null,"spread":false},{"title":"cli.cjs <span style='color:#111;'> 208.36KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

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