From f0837188fdd7c3bcb8ade384b23bf9cb8e36f7ad Mon Sep 17 00:00:00 2001 From: Gregor Date: Mon, 10 Oct 2022 20:47:15 +0200 Subject: [PATCH 1/3] fix chrome bindings for verification --- src/chrome_bindings/worker_run.js | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/src/chrome_bindings/worker_run.js b/src/chrome_bindings/worker_run.js index a219d1973b..b274ca94d7 100644 --- a/src/chrome_bindings/worker_run.js +++ b/src/chrome_bindings/worker_run.js @@ -19,7 +19,7 @@ export default function workerRun() { args: [ plonk_wasm.WasmFpGateVector, undefined /* number */, - undefined, + undefined /* number */, plonk_wasm.WasmFpSrs, ], res: plonk_wasm.WasmPastaFpPlonkIndex, @@ -28,7 +28,7 @@ export default function workerRun() { args: [ plonk_wasm.WasmFqGateVector, undefined /* number */, - undefined, + undefined /* number */, plonk_wasm.WasmFqSrs, ], res: plonk_wasm.WasmPastaFqPlonkIndex, @@ -61,7 +61,6 @@ export default function workerRun() { }, caml_pasta_fp_plonk_proof_verify: { args: [ - undefined /*Uint32Array*/, plonk_wasm.WasmFpPlonkVerifierIndex, plonk_wasm.WasmFpProverProof, ], @@ -69,12 +68,19 @@ export default function workerRun() { }, caml_pasta_fq_plonk_proof_verify: { args: [ - undefined /*Uint32Array*/, plonk_wasm.WasmFqPlonkVerifierIndex, plonk_wasm.WasmFqProverProof, ], res: bool, }, + caml_pasta_fp_plonk_proof_batch_verify: { + args: [undefined /* UintXArray */, undefined /* UintXArray */], + res: bool, + }, + caml_pasta_fq_plonk_proof_batch_verify: { + args: [undefined /* UintXArray */, undefined /* UintXArray */], + res: bool, + }, caml_fp_srs_b_poly_commitment: { args: [plonk_wasm.WasmFpSrs, undefined /*Uint8Array*/], res: plonk_wasm.WasmFpPolyComm, @@ -99,6 +105,22 @@ export default function workerRun() { ], res: plonk_wasm.WasmFqOracles, }, + caml_fp_srs_batch_accumulator_check: { + args: [ + plonk_wasm.WasmFpSrs, + undefined /* UintXArray */, + undefined /* UintXArray */, + ], + res: bool, + }, + caml_fq_srs_batch_accumulator_check: { + args: [ + plonk_wasm.WasmFqSrs, + undefined /* UintXArray */, + undefined /* UintXArray */, + ], + res: bool, + }, }; }; From 2f46b99f48113598a02c0f982509e0482e58d856 Mon Sep 17 00:00:00 2001 From: Gregor Date: Mon, 10 Oct 2022 21:10:11 +0200 Subject: [PATCH 2/3] changelog --- CHANGELOG.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c85a8943e..5bef3727a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,10 +15,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 _Security_ in case of vulnerabilities. --> -## [Unreleased](https://github.com/o1-labs/snarkyjs/compare/ba688523...HEAD) +## [Unreleased](https://github.com/o1-labs/snarkyjs/compare/f0837188...HEAD) (no unreleased changes yet) +## [0.6.1](https://github.com/o1-labs/snarkyjs/compare/ba688523...f0837188) + +### Fixed + +- Proof verification on the web version https://github.com/o1-labs/snarkyjs/pull/476 + ## [0.6.0](https://github.com/o1-labs/snarkyjs/compare/f2ad423...ba688523) ### Added From 9ce8753e631cb0d51f14e46b96e5cfb08b425769 Mon Sep 17 00:00:00 2001 From: Gregor Date: Mon, 10 Oct 2022 21:10:23 +0200 Subject: [PATCH 3/3] 0.6.1 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 288769381f..42993828e2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "snarkyjs", - "version": "0.6.0", + "version": "0.6.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "snarkyjs", - "version": "0.6.0", + "version": "0.6.1", "license": "Apache-2.0", "dependencies": { "env": "^0.0.2", diff --git a/package.json b/package.json index 4f27ccb785..6b4ccf3a0c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "snarkyjs", "description": "JavaScript bindings for SnarkyJS", - "version": "0.6.0", + "version": "0.6.1", "license": "Apache-2.0", "type": "module", "main": "./dist/web/index.js",