From b44662dbc2fef7dc1619cf2bf4f3f21b0a6df02f Mon Sep 17 00:00:00 2001 From: Gregor Date: Thu, 2 Mar 2023 13:17:08 +0100 Subject: [PATCH 1/5] guard against Bool.check failing out-of-snark --- src/lib/circuit_value.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/circuit_value.ts b/src/lib/circuit_value.ts index 0ae2f8bbf..e9118e296 100644 --- a/src/lib/circuit_value.ts +++ b/src/lib/circuit_value.ts @@ -982,7 +982,7 @@ Circuit.witness = function < : createFields(); let aux = type.toAuxiliary(proverValue); let value = type.fromFields(fields, aux) as T; - type.check(value); + if (inCheckedComputation()) type.check(value); return value; }; From faa4808df3f9763627e4657016f2818a9eb91ba5 Mon Sep 17 00:00:00 2001 From: Gregor Date: Thu, 2 Mar 2023 13:17:24 +0100 Subject: [PATCH 2/5] 0.9.2 --- 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 74d675dff..679994dca 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "snarkyjs", - "version": "0.9.1", + "version": "0.9.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "snarkyjs", - "version": "0.9.1", + "version": "0.9.2", "license": "Apache-2.0", "dependencies": { "blakejs": "1.2.1", diff --git a/package.json b/package.json index ca2dc685e..447e6159c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "snarkyjs", "description": "JavaScript bindings for SnarkyJS", - "version": "0.9.1", + "version": "0.9.2", "license": "Apache-2.0", "type": "module", "main": "./dist/web/index.js", From f2025ac3485abbe4a812a68bbe8dd417c7fb7944 Mon Sep 17 00:00:00 2001 From: Gregor Date: Thu, 2 Mar 2023 13:18:59 +0100 Subject: [PATCH 3/5] changelog --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe76ebd82..62dd8eacc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased](https://github.com/o1-labs/snarkyjs/compare/9c44b9c2...HEAD) +> No unreleased changes yet + +## [0.9.2](https://github.com/o1-labs/snarkyjs/compare/9c44b9c2...HEAD) + ### Added - Add back `this.network.timestamp`, implemented on top of `this.network.globalSlotSinceGenesis` https://github.com/o1-labs/snarkyjs/pull/755 @@ -31,6 +35,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Incorrect counting of limit on events and actions https://github.com/o1-labs/snarkyjs/pull/758 - Type error when using `Circuit.array` in on-chain state or events https://github.com/o1-labs/snarkyjs/pull/758 +- Bug when using `Circuit.witness` outside the prover ## [0.9.1](https://github.com/o1-labs/snarkyjs/compare/71b6132b...9c44b9c2) From 1abdfb7097f1f88d8661042976b4284a4ab59de4 Mon Sep 17 00:00:00 2001 From: Gregor Date: Thu, 2 Mar 2023 13:19:50 +0100 Subject: [PATCH 4/5] mina signer release --- src/mina-signer/package-lock.json | 4 ++-- src/mina-signer/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mina-signer/package-lock.json b/src/mina-signer/package-lock.json index 0bccd0e10..bfe561454 100644 --- a/src/mina-signer/package-lock.json +++ b/src/mina-signer/package-lock.json @@ -1,12 +1,12 @@ { "name": "mina-signer", - "version": "2.0.1", + "version": "2.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "mina-signer", - "version": "2.0.1", + "version": "2.0.2", "license": "Apache-2.0", "dependencies": { "blakejs": "^1.2.1", diff --git a/src/mina-signer/package.json b/src/mina-signer/package.json index b0ecff12a..78200e579 100644 --- a/src/mina-signer/package.json +++ b/src/mina-signer/package.json @@ -1,7 +1,7 @@ { "name": "mina-signer", "description": "Node API for signing transactions on various networks for Mina Protocol", - "version": "2.0.1", + "version": "2.0.2", "type": "module", "scripts": { "build": "tsc -p ../../tsconfig.mina-signer.json", From caeb47068e3cba4265b738a903929c0e5e74b948 Mon Sep 17 00:00:00 2001 From: Gregor Date: Thu, 2 Mar 2023 13:31:48 +0100 Subject: [PATCH 5/5] changelog --- CHANGELOG.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 62dd8eacc..46b0c875a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,11 +15,11 @@ 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/9c44b9c2...HEAD) +## [Unreleased](https://github.com/o1-labs/snarkyjs/compare/1abdfb70...HEAD) > No unreleased changes yet -## [0.9.2](https://github.com/o1-labs/snarkyjs/compare/9c44b9c2...HEAD) +## [0.9.2](https://github.com/o1-labs/snarkyjs/compare/9c44b9c2...1abdfb70) ### Added @@ -35,7 +35,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Incorrect counting of limit on events and actions https://github.com/o1-labs/snarkyjs/pull/758 - Type error when using `Circuit.array` in on-chain state or events https://github.com/o1-labs/snarkyjs/pull/758 -- Bug when using `Circuit.witness` outside the prover +- Bug when using `Circuit.witness` outside the prover https://github.com/o1-labs/snarkyjs/pull/774 ## [0.9.1](https://github.com/o1-labs/snarkyjs/compare/71b6132b...9c44b9c2)