From 395c60259bef909a2787a6d7f4c18875172a67c2 Mon Sep 17 00:00:00 2001 From: cedoor Date: Tue, 10 Oct 2023 11:38:51 -0700 Subject: [PATCH] chore(proof): update snarkjs dependency version --- packages/proof/package.json | 2 +- yarn.lock | 209 ++++++++++++++++++++++-------------- 2 files changed, 128 insertions(+), 83 deletions(-) diff --git a/packages/proof/package.json b/packages/proof/package.json index 2144b5619..877d32c83 100644 --- a/packages/proof/package.json +++ b/packages/proof/package.json @@ -47,6 +47,6 @@ "@ethersproject/keccak256": "^5.7.0", "@ethersproject/strings": "^5.5.0", "@zk-kit/incremental-merkle-tree": "0.4.3", - "snarkjs": "0.4.16" + "snarkjs": "0.7.1" } } diff --git a/yarn.lock b/yarn.lock index e5e718738..c7df7bb20 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2819,13 +2819,13 @@ __metadata: languageName: node linkType: hard -"@iden3/binfileutils@npm:0.0.10": - version: 0.0.10 - resolution: "@iden3/binfileutils@npm:0.0.10" +"@iden3/binfileutils@npm:0.0.11": + version: 0.0.11 + resolution: "@iden3/binfileutils@npm:0.0.11" dependencies: - fastfile: 0.0.19 + fastfile: 0.0.20 ffjavascript: ^0.2.48 - checksum: cdeb8ac01e12f485d9fb236654c00d5d5016fc89eae24f7822885dd42f09935cbef601dbdd8a0c96dfb00ded9f4f623e0eec0b568aa86d16522cf77ce6f9498b + checksum: ca61db1325c7e038c6bd723c856eff5f2c82c76394db09d3350ef4f5b7525e3c9ab1f7429900ff5d3e9d26c5970bf5900e6126ccb5c5caa597c16a47336a6be8 languageName: node linkType: hard @@ -4497,7 +4497,7 @@ __metadata: poseidon-lite: ^0.2.0 rollup-plugin-cleanup: ^3.2.1 rollup-plugin-typescript2: ^0.31.2 - snarkjs: 0.4.16 + snarkjs: 0.7.1 peerDependencies: "@semaphore-protocol/group": 3.11.1 "@semaphore-protocol/identity": 3.11.1 @@ -6526,10 +6526,16 @@ __metadata: languageName: node linkType: hard -"big-integer@npm:^1.6.42, big-integer@npm:^1.6.48": - version: 1.6.51 - resolution: "big-integer@npm:1.6.51" - checksum: 3d444173d1b2e20747e2c175568bedeebd8315b0637ea95d75fd27830d3b8e8ba36c6af40374f36bdaea7b5de376dcada1b07587cb2a79a928fccdb6e6e3c518 +"bfj@npm:^7.0.2": + version: 7.1.0 + resolution: "bfj@npm:7.1.0" + dependencies: + bluebird: ^3.7.2 + check-types: ^11.2.3 + hoopy: ^0.1.4 + jsonpath: ^1.1.1 + tryer: ^1.0.1 + checksum: 36da9ed36c60f377a3f43bb0433092af7dc40442914b8155a1330ae86b1905640baf57e9c195ab83b36d6518b27cf8ed880adff663aa444c193be149e027d722 languageName: node linkType: hard @@ -6641,7 +6647,7 @@ __metadata: languageName: node linkType: hard -"bluebird@npm:^3.5.0": +"bluebird@npm:^3.5.0, bluebird@npm:^3.7.2": version: 3.7.2 resolution: "bluebird@npm:3.7.2" checksum: 869417503c722e7dc54ca46715f70e15f4d9c602a423a02c825570862d12935be59ed9c7ba34a9b31f186c017c23cac6b54e35446f8353059c101da73eac22ef @@ -7440,6 +7446,13 @@ __metadata: languageName: node linkType: hard +"check-types@npm:^11.2.3": + version: 11.2.3 + resolution: "check-types@npm:11.2.3" + checksum: f99ff09ae65e63cfcfa40a1275c0a70d8c43ffbf9ac35095f3bf030cc70361c92e075a9975a1144329e50b4fe4620be6bedb4568c18abc96071a3e23aed3ed8e + languageName: node + linkType: hard + "chokidar@npm:3.3.0": version: 3.3.0 resolution: "chokidar@npm:3.3.0" @@ -7529,14 +7542,14 @@ __metadata: languageName: node linkType: hard -"circom_runtime@npm:0.1.17": - version: 0.1.17 - resolution: "circom_runtime@npm:0.1.17" +"circom_runtime@npm:0.1.24": + version: 0.1.24 + resolution: "circom_runtime@npm:0.1.24" dependencies: - ffjavascript: 0.2.48 + ffjavascript: 0.2.60 bin: calcwit: calcwit.js - checksum: 595fc0cc3a62ba5daf8d849feae41c48805c0df43965f85dde4dc434efb607e455fa7801d41c1feacfe0c3c71952a45cd3985abf26fde40c54138392891afd8c + checksum: 0654649ed64ace5562cec025648422970df885e79048b7942e283ef50f43142673acfd752ac2851917a81c43d4d42d37f5fdfc8df71d59ee81b873c19ea81a31 languageName: node linkType: hard @@ -9282,6 +9295,25 @@ __metadata: languageName: node linkType: hard +"escodegen@npm:^1.8.1": + version: 1.14.3 + resolution: "escodegen@npm:1.14.3" + dependencies: + esprima: ^4.0.1 + estraverse: ^4.2.0 + esutils: ^2.0.2 + optionator: ^0.8.1 + source-map: ~0.6.1 + dependenciesMeta: + source-map: + optional: true + bin: + escodegen: bin/escodegen.js + esgenerate: bin/esgenerate.js + checksum: 381cdc4767ecdb221206bbbab021b467bbc2a6f5c9a99c9e6353040080bdd3dfe73d7604ad89a47aca6ea7d58bc635f6bd3fbc8da9a1998e9ddfa8372362ccd0 + languageName: node + linkType: hard + "escodegen@npm:^2.0.0": version: 2.0.0 resolution: "escodegen@npm:2.0.0" @@ -9494,6 +9526,16 @@ __metadata: languageName: node linkType: hard +"esprima@npm:1.2.2": + version: 1.2.2 + resolution: "esprima@npm:1.2.2" + bin: + esparse: ./bin/esparse.js + esvalidate: ./bin/esvalidate.js + checksum: 4f10006f0e315f2f7d8cf6630e465f183512f1ab2e862b11785a133ce37ed1696573deefb5256e510eaa4368342b13b393334477f6ccdcdb8f10e782b0f5e6dc + languageName: node + linkType: hard + "esprima@npm:2.7.x, esprima@npm:^2.7.1": version: 2.7.3 resolution: "esprima@npm:2.7.3" @@ -9539,7 +9581,7 @@ __metadata: languageName: node linkType: hard -"estraverse@npm:^4.1.1": +"estraverse@npm:^4.1.1, estraverse@npm:^4.2.0": version: 4.3.0 resolution: "estraverse@npm:4.3.0" checksum: a6299491f9940bb246124a8d44b7b7a413a8336f5436f9837aaa9330209bd9ee8af7e91a654a3545aee9c54b3308e78ee360cef1d777d37cfef77d2fa33b5827 @@ -10073,10 +10115,10 @@ __metadata: languageName: node linkType: hard -"fastfile@npm:0.0.19": - version: 0.0.19 - resolution: "fastfile@npm:0.0.19" - checksum: 6179bdd7c21be9882294dae66103795c099594098b51958bcf08a4545c91387321b43511730d0542a5a9ed8c5ec9069c065e065fd67255453ac900a23895dac1 +"fastfile@npm:0.0.20": + version: 0.0.20 + resolution: "fastfile@npm:0.0.20" + checksum: e5d6e5f57a9b58c9534202e477cbffbca2182c407171950695ddb5c3e6b89554bc8561fbb6e370c99e371a8f23486a23fbaca527827886cec4897d481cbd03b6 languageName: node linkType: hard @@ -10117,15 +10159,14 @@ __metadata: languageName: node linkType: hard -"ffjavascript@npm:0.2.48": - version: 0.2.48 - resolution: "ffjavascript@npm:0.2.48" +"ffjavascript@npm:0.2.60, ffjavascript@npm:^0.2.45": + version: 0.2.60 + resolution: "ffjavascript@npm:0.2.60" dependencies: - big-integer: ^1.6.48 - wasmbuilder: ^0.0.12 - wasmcurves: 0.1.0 + wasmbuilder: 0.0.16 + wasmcurves: 0.2.2 web-worker: ^1.2.0 - checksum: 68beae9a4f642c06656685353b84fd7655020ca0e628ea046e94452ab779587953cc45cde106d74b68be7177b49c8f19b105d6552c4a1d715e784ae9e7c9ed34 + checksum: 5dbd597ee108373af1ba1877757a08b47db4bcd7b3b043b260d4475a0b1125454de00fb214224f85d9e6e6a6c0a1cfabd1ba9a2b68279b99c581404266e78138 languageName: node linkType: hard @@ -10140,17 +10181,6 @@ __metadata: languageName: node linkType: hard -"ffjavascript@npm:^0.2.45": - version: 0.2.60 - resolution: "ffjavascript@npm:0.2.60" - dependencies: - wasmbuilder: 0.0.16 - wasmcurves: 0.2.2 - web-worker: ^1.2.0 - checksum: 5dbd597ee108373af1ba1877757a08b47db4bcd7b3b043b260d4475a0b1125454de00fb214224f85d9e6e6a6c0a1cfabd1ba9a2b68279b99c581404266e78138 - languageName: node - linkType: hard - "figlet@npm:^1.5.2": version: 1.5.2 resolution: "figlet@npm:1.5.2" @@ -11687,6 +11717,13 @@ __metadata: languageName: node linkType: hard +"hoopy@npm:^0.1.4": + version: 0.1.4 + resolution: "hoopy@npm:0.1.4" + checksum: cfa60c7684c5e1ee4efe26e167bc54b73f839ffb59d1d44a5c4bf891e26b4f5bcc666555219a98fec95508fea4eda3a79540c53c05cc79afc1f66f9a238f4d9e + languageName: node + linkType: hard + "hosted-git-info@npm:^2.1.4": version: 2.8.9 resolution: "hosted-git-info@npm:2.8.9" @@ -13487,6 +13524,17 @@ __metadata: languageName: node linkType: hard +"jsonpath@npm:^1.1.1": + version: 1.1.1 + resolution: "jsonpath@npm:1.1.1" + dependencies: + esprima: 1.2.2 + static-eval: 2.0.2 + underscore: 1.12.1 + checksum: 5480d8e9e424fe2ed4ade6860b6e2cefddb21adb3a99abe0254cd9428e8ef9b0c9fb5729d6a5a514e90df50d645ccea9f3be48d627570e6222dd5dadc28eba7b + languageName: node + linkType: hard + "jsonpointer@npm:^5.0.0": version: 5.0.1 resolution: "jsonpointer@npm:5.0.1" @@ -16498,15 +16546,15 @@ __metadata: languageName: node linkType: hard -"r1csfile@npm:0.0.35": - version: 0.0.35 - resolution: "r1csfile@npm:0.0.35" +"r1csfile@npm:0.0.47": + version: 0.0.47 + resolution: "r1csfile@npm:0.0.47" dependencies: "@iden3/bigarray": 0.0.2 - "@iden3/binfileutils": 0.0.10 - fastfile: 0.0.19 - ffjavascript: 0.2.48 - checksum: 84f7b4eab5bcdd6a3f6d699998c9479a5eff8d670383d4f0c5afc08431f45353abab9a8b07eeabaef89807e24b0ba50611d4d6280eb6c3a7483e1487a91f0ac6 + "@iden3/binfileutils": 0.0.11 + fastfile: 0.0.20 + ffjavascript: 0.2.60 + checksum: edeb325b83851a71cbca2e5de56eb622ee5347ecae921b526a5fc484c4825b6b30c73b6fde40e9bc5112b9d21e046af885bf212ed9cee2efbc6de93b8454ec06 languageName: node linkType: hard @@ -16699,13 +16747,6 @@ __metadata: languageName: node linkType: hard -"readline@npm:^1.3.0": - version: 1.3.0 - resolution: "readline@npm:1.3.0" - checksum: dfaf8e6ac20408ea00d650e95f7bb47f77c4c62dd12ed7fb51731ee84532a2f3675fcdc4cab4923dc1eef227520a2e082a093215190907758bea9f585b19438e - languageName: node - linkType: hard - "rechoir@npm:^0.6.2": version: 0.6.2 resolution: "rechoir@npm:0.6.2" @@ -17795,23 +17836,23 @@ __metadata: languageName: node linkType: hard -"snarkjs@npm:0.4.16": - version: 0.4.16 - resolution: "snarkjs@npm:0.4.16" +"snarkjs@npm:0.7.1": + version: 0.7.1 + resolution: "snarkjs@npm:0.7.1" dependencies: - "@iden3/binfileutils": 0.0.10 + "@iden3/binfileutils": 0.0.11 + bfj: ^7.0.2 blake2b-wasm: ^2.4.0 - circom_runtime: 0.1.17 + circom_runtime: 0.1.24 ejs: ^3.1.6 - fastfile: 0.0.19 - ffjavascript: 0.2.48 + fastfile: 0.0.20 + ffjavascript: 0.2.60 js-sha3: ^0.8.0 logplease: ^1.2.15 - r1csfile: 0.0.35 - readline: ^1.3.0 + r1csfile: 0.0.47 bin: snarkjs: build/cli.cjs - checksum: e26c907493fe7bc78563a918391602ca4166060667c1936cf65fba09ca39a5019288acb1c6d695ff5a0c6cf300a97a8bfb613e84df268b4e2108e2e2c28db274 + checksum: a6cf652962d8e53474fad8aecf884ebb11ddca707e237036e268266ca2760687398043bf47e66eb2bc627435e54c795863f4629ddae99311dbec27f3cdc9167f languageName: node linkType: hard @@ -18162,6 +18203,15 @@ __metadata: languageName: node linkType: hard +"static-eval@npm:2.0.2": + version: 2.0.2 + resolution: "static-eval@npm:2.0.2" + dependencies: + escodegen: ^1.8.1 + checksum: 335a923c5ccb29add404ac23d0a55c0da6cee3071f6f67a7053aeac0dedc6dbfc53ac9269e9c25f403f5b7603a291ef47d7114f99bde241184f7aa3f9286dc32 + languageName: node + linkType: hard + "statuses@npm:2.0.1": version: 2.0.1 resolution: "statuses@npm:2.0.1" @@ -18956,6 +19006,13 @@ __metadata: languageName: node linkType: hard +"tryer@npm:^1.0.1": + version: 1.0.1 + resolution: "tryer@npm:1.0.1" + checksum: 1cf14d7f67c79613f054b569bfc9a89c7020d331573a812dfcf7437244e8f8e6eb6893b210cbd9cc217f67c1d72617f89793df231e4fe7d53634ed91cf3a89d1 + languageName: node + linkType: hard + "ts-command-line-args@npm:^2.2.0": version: 2.4.2 resolution: "ts-command-line-args@npm:2.4.2" @@ -19405,6 +19462,13 @@ __metadata: languageName: node linkType: hard +"underscore@npm:1.12.1": + version: 1.12.1 + resolution: "underscore@npm:1.12.1" + checksum: ec327603aa112b99fe9d74cd9bf3b3b7451465a9d2610ceab269a532e3f191650ab017903be34dc86fe406a11d04d8905a3b04dd4c129493e51bee09a3f3074c + languageName: node + linkType: hard + "undici@npm:^5.12.0": version: 5.21.0 resolution: "undici@npm:5.21.0" @@ -19831,25 +19895,6 @@ __metadata: languageName: node linkType: hard -"wasmbuilder@npm:^0.0.12": - version: 0.0.12 - resolution: "wasmbuilder@npm:0.0.12" - dependencies: - big-integer: ^1.6.48 - checksum: 327b3c50b0e1e5e3aac9e218e0f96fdc638b7952ab86acc2ad53960371996826dbb0a8095edce482cf1d9c245d96884449701909bc962920aa7ec8241db01214 - languageName: node - linkType: hard - -"wasmcurves@npm:0.1.0": - version: 0.1.0 - resolution: "wasmcurves@npm:0.1.0" - dependencies: - big-integer: ^1.6.42 - blakejs: ^1.1.0 - checksum: 6bf6719e659a88904af0b98d152316e3b22435ca6a2cfc8bbf4530576806f17b2776b2c7d91d1a678fe0d51485a0d1748efcd080808c181c7977bee50b26efa9 - languageName: node - linkType: hard - "wasmcurves@npm:0.2.0": version: 0.2.0 resolution: "wasmcurves@npm:0.2.0"