diff --git a/package-lock.json b/package-lock.json index ad6c9bdd..ac23205a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,7 +19,7 @@ "ethers": "^6.4.0", "ffjavascript": "0.2.55", "poseidon-lite": "^0.0.2", - "snarkjs": "^0.4.22" + "snarkjs": "^0.7.0" }, "devDependencies": { "@ethersproject/bignumber": "^5.7.0", @@ -4728,16 +4728,39 @@ } }, "node_modules/circom_runtime": { - "version": "0.1.20", - "resolved": "https://registry.npmjs.org/circom_runtime/-/circom_runtime-0.1.20.tgz", - "integrity": "sha512-61AnccA8Ozo5apyDf3hR1JMDDNx1DttKll2bdxVpNjUaTiawDuuYE0VNmRvuoKlcy/WAY+HtD3K994WGrOFhJQ==", + "version": "0.1.22", + "resolved": "https://registry.npmjs.org/circom_runtime/-/circom_runtime-0.1.22.tgz", + "integrity": "sha512-V/XYZWBhbZY8SotkaGH4FbiDYAZ8a1Md++MBiKPDOuWS/NIJB+Q+XIiTC8zKMgoDaa9cd2OiTvsC9J6te7twNg==", "dependencies": { - "ffjavascript": "0.2.55" + "ffjavascript": "0.2.57" }, "bin": { "calcwit": "calcwit.js" } }, + "node_modules/circom_runtime/node_modules/ffjavascript": { + "version": "0.2.57", + "resolved": "https://registry.npmjs.org/ffjavascript/-/ffjavascript-0.2.57.tgz", + "integrity": "sha512-V+vxZ/zPNcthrWmqfe/1YGgqdkTamJeXiED0tsk7B84g40DKlrTdx47IqZuiygqAVG6zMw4qYuvXftIJWsmfKQ==", + "dependencies": { + "wasmbuilder": "0.0.16", + "wasmcurves": "0.2.0", + "web-worker": "^1.2.0" + } + }, + "node_modules/circom_runtime/node_modules/wasmbuilder": { + "version": "0.0.16", + "resolved": "https://registry.npmjs.org/wasmbuilder/-/wasmbuilder-0.0.16.tgz", + "integrity": "sha512-Qx3lEFqaVvp1cEYW7Bfi+ebRJrOiwz2Ieu7ZG2l7YyeSJIok/reEQCQCuicj/Y32ITIJuGIM9xZQppGx5LrQdA==" + }, + "node_modules/circom_runtime/node_modules/wasmcurves": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/wasmcurves/-/wasmcurves-0.2.0.tgz", + "integrity": "sha512-3e2rbxdujOwaod657gxgmdhZNn+i1qKdHO3Y/bK+8E7bV8ttV/fu5FO4/WLBACF375cK0QDLOP+65Na63qYuWA==", + "dependencies": { + "wasmbuilder": "0.0.16" + } + }, "node_modules/cjs-module-lexer": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.2.tgz", @@ -10543,14 +10566,37 @@ ] }, "node_modules/r1csfile": { - "version": "0.0.40", - "resolved": "https://registry.npmjs.org/r1csfile/-/r1csfile-0.0.40.tgz", - "integrity": "sha512-3tKaFLncf42ZTRpPMlgyiFBdk6kir4S4O3X+u4UQjgLYoDPHfizazNbK0Jzj++PVIXVUFAqugSbIo4W3UDuHcQ==", + "version": "0.0.45", + "resolved": "https://registry.npmjs.org/r1csfile/-/r1csfile-0.0.45.tgz", + "integrity": "sha512-YKIp4D441aZ6OoI9y+bfAyb2j4Cl+OFq/iiX6pPWDrL4ZO968h0dq0w07i65edvrTt7/G43mTnl0qEuLXyp/Yw==", "dependencies": { "@iden3/bigarray": "0.0.2", "@iden3/binfileutils": "0.0.11", "fastfile": "0.0.20", - "ffjavascript": "0.2.55" + "ffjavascript": "0.2.57" + } + }, + "node_modules/r1csfile/node_modules/ffjavascript": { + "version": "0.2.57", + "resolved": "https://registry.npmjs.org/ffjavascript/-/ffjavascript-0.2.57.tgz", + "integrity": "sha512-V+vxZ/zPNcthrWmqfe/1YGgqdkTamJeXiED0tsk7B84g40DKlrTdx47IqZuiygqAVG6zMw4qYuvXftIJWsmfKQ==", + "dependencies": { + "wasmbuilder": "0.0.16", + "wasmcurves": "0.2.0", + "web-worker": "^1.2.0" + } + }, + "node_modules/r1csfile/node_modules/wasmbuilder": { + "version": "0.0.16", + "resolved": "https://registry.npmjs.org/wasmbuilder/-/wasmbuilder-0.0.16.tgz", + "integrity": "sha512-Qx3lEFqaVvp1cEYW7Bfi+ebRJrOiwz2Ieu7ZG2l7YyeSJIok/reEQCQCuicj/Y32ITIJuGIM9xZQppGx5LrQdA==" + }, + "node_modules/r1csfile/node_modules/wasmcurves": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/wasmcurves/-/wasmcurves-0.2.0.tgz", + "integrity": "sha512-3e2rbxdujOwaod657gxgmdhZNn+i1qKdHO3Y/bK+8E7bV8ttV/fu5FO4/WLBACF375cK0QDLOP+65Na63qYuWA==", + "dependencies": { + "wasmbuilder": "0.0.16" } }, "node_modules/randombytes": { @@ -11104,25 +11150,48 @@ } }, "node_modules/snarkjs": { - "version": "0.4.27", - "resolved": "https://registry.npmjs.org/snarkjs/-/snarkjs-0.4.27.tgz", - "integrity": "sha512-2CH4JpOIkaoEiPvc/d9eiA7Vs0mC2ZnQAhFIFF+qp8eVxhHpDXFZn50hEZhcb8lypGry8ZiiEQ73a3hOFOUbYQ==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/snarkjs/-/snarkjs-0.7.0.tgz", + "integrity": "sha512-Vu5W+0Va6X1xvlCllpZ2r3/S7MafnL6IrAv09lk/F+VNDHuHEHx3xopR9Kr70p2KpbBBJ/HB9VCDZWism8WGlA==", "dependencies": { "@iden3/binfileutils": "0.0.11", "bfj": "^7.0.2", "blake2b-wasm": "^2.4.0", - "circom_runtime": "0.1.20", + "circom_runtime": "0.1.22", "ejs": "^3.1.6", "fastfile": "0.0.20", - "ffjavascript": "0.2.55", + "ffjavascript": "0.2.59", "js-sha3": "^0.8.0", "logplease": "^1.2.15", - "r1csfile": "0.0.40" + "r1csfile": "0.0.45" }, "bin": { "snarkjs": "build/cli.cjs" } }, + "node_modules/snarkjs/node_modules/ffjavascript": { + "version": "0.2.59", + "resolved": "https://registry.npmjs.org/ffjavascript/-/ffjavascript-0.2.59.tgz", + "integrity": "sha512-QssOEUv+wilz9Sg7Zaj6KWAm7QceOAEsFuEBTltUsDo1cjn11rA/LGYvzFBPbzNfxRlZxwgJ7uxpCQcdDlrNfw==", + "dependencies": { + "wasmbuilder": "0.0.16", + "wasmcurves": "0.2.1", + "web-worker": "^1.2.0" + } + }, + "node_modules/snarkjs/node_modules/wasmbuilder": { + "version": "0.0.16", + "resolved": "https://registry.npmjs.org/wasmbuilder/-/wasmbuilder-0.0.16.tgz", + "integrity": "sha512-Qx3lEFqaVvp1cEYW7Bfi+ebRJrOiwz2Ieu7ZG2l7YyeSJIok/reEQCQCuicj/Y32ITIJuGIM9xZQppGx5LrQdA==" + }, + "node_modules/snarkjs/node_modules/wasmcurves": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/wasmcurves/-/wasmcurves-0.2.1.tgz", + "integrity": "sha512-9ciO7bUE5bgpbOcdK7IO3enrSVIKHwrQmPibok4GLJWaCA7Wyqc9PRYnu5HbiFv9NDFNqVKPtU5R6Is5KujBLg==", + "dependencies": { + "wasmbuilder": "0.0.16" + } + }, "node_modules/solc": { "version": "0.7.3", "resolved": "https://registry.npmjs.org/solc/-/solc-0.7.3.tgz", @@ -15613,11 +15682,36 @@ } }, "circom_runtime": { - "version": "0.1.20", - "resolved": "https://registry.npmjs.org/circom_runtime/-/circom_runtime-0.1.20.tgz", - "integrity": "sha512-61AnccA8Ozo5apyDf3hR1JMDDNx1DttKll2bdxVpNjUaTiawDuuYE0VNmRvuoKlcy/WAY+HtD3K994WGrOFhJQ==", + "version": "0.1.22", + "resolved": "https://registry.npmjs.org/circom_runtime/-/circom_runtime-0.1.22.tgz", + "integrity": "sha512-V/XYZWBhbZY8SotkaGH4FbiDYAZ8a1Md++MBiKPDOuWS/NIJB+Q+XIiTC8zKMgoDaa9cd2OiTvsC9J6te7twNg==", "requires": { - "ffjavascript": "0.2.55" + "ffjavascript": "0.2.57" + }, + "dependencies": { + "ffjavascript": { + "version": "0.2.57", + "resolved": "https://registry.npmjs.org/ffjavascript/-/ffjavascript-0.2.57.tgz", + "integrity": "sha512-V+vxZ/zPNcthrWmqfe/1YGgqdkTamJeXiED0tsk7B84g40DKlrTdx47IqZuiygqAVG6zMw4qYuvXftIJWsmfKQ==", + "requires": { + "wasmbuilder": "0.0.16", + "wasmcurves": "0.2.0", + "web-worker": "^1.2.0" + } + }, + "wasmbuilder": { + "version": "0.0.16", + "resolved": "https://registry.npmjs.org/wasmbuilder/-/wasmbuilder-0.0.16.tgz", + "integrity": "sha512-Qx3lEFqaVvp1cEYW7Bfi+ebRJrOiwz2Ieu7ZG2l7YyeSJIok/reEQCQCuicj/Y32ITIJuGIM9xZQppGx5LrQdA==" + }, + "wasmcurves": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/wasmcurves/-/wasmcurves-0.2.0.tgz", + "integrity": "sha512-3e2rbxdujOwaod657gxgmdhZNn+i1qKdHO3Y/bK+8E7bV8ttV/fu5FO4/WLBACF375cK0QDLOP+65Na63qYuWA==", + "requires": { + "wasmbuilder": "0.0.16" + } + } } }, "cjs-module-lexer": { @@ -19909,14 +20003,39 @@ "dev": true }, "r1csfile": { - "version": "0.0.40", - "resolved": "https://registry.npmjs.org/r1csfile/-/r1csfile-0.0.40.tgz", - "integrity": "sha512-3tKaFLncf42ZTRpPMlgyiFBdk6kir4S4O3X+u4UQjgLYoDPHfizazNbK0Jzj++PVIXVUFAqugSbIo4W3UDuHcQ==", + "version": "0.0.45", + "resolved": "https://registry.npmjs.org/r1csfile/-/r1csfile-0.0.45.tgz", + "integrity": "sha512-YKIp4D441aZ6OoI9y+bfAyb2j4Cl+OFq/iiX6pPWDrL4ZO968h0dq0w07i65edvrTt7/G43mTnl0qEuLXyp/Yw==", "requires": { "@iden3/bigarray": "0.0.2", "@iden3/binfileutils": "0.0.11", "fastfile": "0.0.20", - "ffjavascript": "0.2.55" + "ffjavascript": "0.2.57" + }, + "dependencies": { + "ffjavascript": { + "version": "0.2.57", + "resolved": "https://registry.npmjs.org/ffjavascript/-/ffjavascript-0.2.57.tgz", + "integrity": "sha512-V+vxZ/zPNcthrWmqfe/1YGgqdkTamJeXiED0tsk7B84g40DKlrTdx47IqZuiygqAVG6zMw4qYuvXftIJWsmfKQ==", + "requires": { + "wasmbuilder": "0.0.16", + "wasmcurves": "0.2.0", + "web-worker": "^1.2.0" + } + }, + "wasmbuilder": { + "version": "0.0.16", + "resolved": "https://registry.npmjs.org/wasmbuilder/-/wasmbuilder-0.0.16.tgz", + "integrity": "sha512-Qx3lEFqaVvp1cEYW7Bfi+ebRJrOiwz2Ieu7ZG2l7YyeSJIok/reEQCQCuicj/Y32ITIJuGIM9xZQppGx5LrQdA==" + }, + "wasmcurves": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/wasmcurves/-/wasmcurves-0.2.0.tgz", + "integrity": "sha512-3e2rbxdujOwaod657gxgmdhZNn+i1qKdHO3Y/bK+8E7bV8ttV/fu5FO4/WLBACF375cK0QDLOP+65Na63qYuWA==", + "requires": { + "wasmbuilder": "0.0.16" + } + } } }, "randombytes": { @@ -20315,20 +20434,45 @@ "dev": true }, "snarkjs": { - "version": "0.4.27", - "resolved": "https://registry.npmjs.org/snarkjs/-/snarkjs-0.4.27.tgz", - "integrity": "sha512-2CH4JpOIkaoEiPvc/d9eiA7Vs0mC2ZnQAhFIFF+qp8eVxhHpDXFZn50hEZhcb8lypGry8ZiiEQ73a3hOFOUbYQ==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/snarkjs/-/snarkjs-0.7.0.tgz", + "integrity": "sha512-Vu5W+0Va6X1xvlCllpZ2r3/S7MafnL6IrAv09lk/F+VNDHuHEHx3xopR9Kr70p2KpbBBJ/HB9VCDZWism8WGlA==", "requires": { "@iden3/binfileutils": "0.0.11", "bfj": "^7.0.2", "blake2b-wasm": "^2.4.0", - "circom_runtime": "0.1.20", + "circom_runtime": "0.1.22", "ejs": "^3.1.6", "fastfile": "0.0.20", - "ffjavascript": "0.2.55", + "ffjavascript": "0.2.59", "js-sha3": "^0.8.0", "logplease": "^1.2.15", - "r1csfile": "0.0.40" + "r1csfile": "0.0.45" + }, + "dependencies": { + "ffjavascript": { + "version": "0.2.59", + "resolved": "https://registry.npmjs.org/ffjavascript/-/ffjavascript-0.2.59.tgz", + "integrity": "sha512-QssOEUv+wilz9Sg7Zaj6KWAm7QceOAEsFuEBTltUsDo1cjn11rA/LGYvzFBPbzNfxRlZxwgJ7uxpCQcdDlrNfw==", + "requires": { + "wasmbuilder": "0.0.16", + "wasmcurves": "0.2.1", + "web-worker": "^1.2.0" + } + }, + "wasmbuilder": { + "version": "0.0.16", + "resolved": "https://registry.npmjs.org/wasmbuilder/-/wasmbuilder-0.0.16.tgz", + "integrity": "sha512-Qx3lEFqaVvp1cEYW7Bfi+ebRJrOiwz2Ieu7ZG2l7YyeSJIok/reEQCQCuicj/Y32ITIJuGIM9xZQppGx5LrQdA==" + }, + "wasmcurves": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/wasmcurves/-/wasmcurves-0.2.1.tgz", + "integrity": "sha512-9ciO7bUE5bgpbOcdK7IO3enrSVIKHwrQmPibok4GLJWaCA7Wyqc9PRYnu5HbiFv9NDFNqVKPtU5R6Is5KujBLg==", + "requires": { + "wasmbuilder": "0.0.16" + } + } } }, "solc": { diff --git a/package.json b/package.json index ac1ed323..8d7fb69c 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ "ethers": "^6.4.0", "ffjavascript": "0.2.55", "poseidon-lite": "^0.0.2", - "snarkjs": "^0.4.22" + "snarkjs": "^0.7.0" }, "devDependencies": { "@ethersproject/bignumber": "^5.7.0",