From 0cc537eb23c21490875109ec8b242225a72f9849 Mon Sep 17 00:00:00 2001 From: Rob Knight Date: Mon, 30 Sep 2024 10:58:34 -0700 Subject: [PATCH 1/2] Include tuple entries in proof config --- .changeset/forty-starfishes-drop.md | 5 +++++ packages/podspec/package.json | 10 ++++++++-- packages/podspec/src/gpc/proof_request.ts | 16 +++++++++++++++- 3 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 .changeset/forty-starfishes-drop.md diff --git a/.changeset/forty-starfishes-drop.md b/.changeset/forty-starfishes-drop.md new file mode 100644 index 0000000..e2d72ed --- /dev/null +++ b/.changeset/forty-starfishes-drop.md @@ -0,0 +1,5 @@ +--- +"@parcnet-js/podspec": patch +--- + +Add entries to config if included in tuples diff --git a/packages/podspec/package.json b/packages/podspec/package.json index 9aae58f..87aa058 100644 --- a/packages/podspec/package.json +++ b/packages/podspec/package.json @@ -8,7 +8,10 @@ "types": "src/index.ts", "exports": { ".": { - "import": { "types": "./src/index.ts", "import": "./dist/index.js" }, + "import": { + "types": "./src/index.ts", + "import": "./dist/index.js" + }, "require": { "types": "./src/index.ts", "require": "./dist/index.cjs" @@ -53,7 +56,10 @@ "types": "dist/index.d.ts", "exports": { ".": { - "import": { "types": "./dist/index.d.ts", "import": "./dist/index.js" }, + "import": { + "types": "./dist/index.d.ts", + "import": "./dist/index.js" + }, "require": { "types": "./dist/index.d.cts", "require": "./dist/index.cjs" diff --git a/packages/podspec/src/gpc/proof_request.ts b/packages/podspec/src/gpc/proof_request.ts index bb6c41b..4dd6e1c 100644 --- a/packages/podspec/src/gpc/proof_request.ts +++ b/packages/podspec/src/gpc/proof_request.ts @@ -181,7 +181,6 @@ function makeProofRequest

( entrySchema.isNotMemberOf; } } - pods[podName] = podConfig; for (const entriesTupleSchema of podSchema.tuples ?? []) { const tupleName = `tuple_${podName}_entries_${entriesTupleSchema.entries.join( @@ -206,7 +205,22 @@ function makeProofRequest

( membershipLists[`blocklist_${tupleName}`] = entriesTupleSchema.isNotMemberOf; } + // Tuples may contain entries which are not revealed or subject to any + // membership rules or constraints, in which case we need to add them to + // the proof config so that they are included. + for (const entry of entriesTupleSchema.entries) { + if (entry === "$signerPublicKey") { + continue; + } + if (!(entry in podConfig.entries)) { + podConfig.entries[entry] = { + isRevealed: false + }; + } + } } + + pods[podName] = podConfig; } return { From f84fe719d178756c909a56536a18e63892379b35 Mon Sep 17 00:00:00 2001 From: Rob Knight Date: Mon, 30 Sep 2024 11:12:44 -0700 Subject: [PATCH 2/2] Release new podspec version --- .changeset/forty-starfishes-drop.md | 5 ----- apps/client-web/CHANGELOG.md | 9 +++++++++ apps/client-web/package.json | 2 +- examples/test-app/CHANGELOG.md | 10 ++++++++++ examples/test-app/package.json | 2 +- packages/app-connector/CHANGELOG.md | 8 ++++++++ packages/app-connector/package.json | 12 +++++++++--- packages/client-helpers/CHANGELOG.md | 6 ++++++ packages/client-helpers/package.json | 12 +++++++++--- packages/client-rpc/CHANGELOG.md | 7 +++++++ packages/client-rpc/package.json | 12 +++++++++--- packages/podspec/CHANGELOG.md | 6 ++++++ packages/podspec/package.json | 2 +- packages/ticket-spec/CHANGELOG.md | 8 ++++++++ packages/ticket-spec/package.json | 12 +++++++++--- 15 files changed, 93 insertions(+), 20 deletions(-) delete mode 100644 .changeset/forty-starfishes-drop.md diff --git a/.changeset/forty-starfishes-drop.md b/.changeset/forty-starfishes-drop.md deleted file mode 100644 index e2d72ed..0000000 --- a/.changeset/forty-starfishes-drop.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@parcnet-js/podspec": patch ---- - -Add entries to config if included in tuples diff --git a/apps/client-web/CHANGELOG.md b/apps/client-web/CHANGELOG.md index e7f347b..449f26d 100644 --- a/apps/client-web/CHANGELOG.md +++ b/apps/client-web/CHANGELOG.md @@ -1,5 +1,14 @@ # client-web +## 0.0.7 + +### Patch Changes + +- Updated dependencies [0cc537e] + - @parcnet-js/podspec@0.0.4 + - @parcnet-js/client-rpc@0.0.5 + - @parcnet-js/client-helpers@0.0.7 + ## 0.0.6 ### Patch Changes diff --git a/apps/client-web/package.json b/apps/client-web/package.json index 6d9bbe3..b1c2fe7 100644 --- a/apps/client-web/package.json +++ b/apps/client-web/package.json @@ -1,7 +1,7 @@ { "name": "client-web", "private": true, - "version": "0.0.6", + "version": "0.0.7", "type": "module", "scripts": { "dev": "vite", diff --git a/examples/test-app/CHANGELOG.md b/examples/test-app/CHANGELOG.md index d67c37a..6189ff6 100644 --- a/examples/test-app/CHANGELOG.md +++ b/examples/test-app/CHANGELOG.md @@ -1,5 +1,15 @@ # test-app +## 1.0.9 + +### Patch Changes + +- Updated dependencies [0cc537e] + - @parcnet-js/podspec@0.0.4 + - @parcnet-js/app-connector@0.0.8 + - @parcnet-js/client-rpc@0.0.5 + - @parcnet-js/ticket-spec@0.0.3 + ## 1.0.8 ### Patch Changes diff --git a/examples/test-app/package.json b/examples/test-app/package.json index 5c0c53f..1c459e3 100644 --- a/examples/test-app/package.json +++ b/examples/test-app/package.json @@ -1,6 +1,6 @@ { "name": "test-app", - "version": "1.0.8", + "version": "1.0.9", "private": true, "type": "module", "scripts": { diff --git a/packages/app-connector/CHANGELOG.md b/packages/app-connector/CHANGELOG.md index b249981..82dd623 100644 --- a/packages/app-connector/CHANGELOG.md +++ b/packages/app-connector/CHANGELOG.md @@ -1,5 +1,13 @@ # @parcnet-js/app-connector +## 0.0.8 + +### Patch Changes + +- Updated dependencies [0cc537e] + - @parcnet-js/podspec@0.0.4 + - @parcnet-js/client-rpc@0.0.5 + ## 0.0.7 ### Patch Changes diff --git a/packages/app-connector/package.json b/packages/app-connector/package.json index 166d1a5..6c7a23b 100644 --- a/packages/app-connector/package.json +++ b/packages/app-connector/package.json @@ -1,6 +1,6 @@ { "name": "@parcnet-js/app-connector", - "version": "0.0.7", + "version": "0.0.8", "license": "GPL-3.0-or-later", "type": "module", "main": "dist/index.cjs", @@ -8,7 +8,10 @@ "types": "src/index.ts", "exports": { ".": { - "import": { "types": "./src/index.ts", "import": "./dist/index.js" }, + "import": { + "types": "./src/index.ts", + "import": "./dist/index.js" + }, "require": { "types": "./src/index.ts", "require": "./dist/index.cjs" @@ -45,7 +48,10 @@ "types": "dist/index.d.ts", "exports": { ".": { - "import": { "types": "./dist/index.d.ts", "import": "./dist/index.js" }, + "import": { + "types": "./dist/index.d.ts", + "import": "./dist/index.js" + }, "require": { "types": "./dist/index.d.cts", "require": "./dist/index.cjs" diff --git a/packages/client-helpers/CHANGELOG.md b/packages/client-helpers/CHANGELOG.md index a87e5b6..3cacc7a 100644 --- a/packages/client-helpers/CHANGELOG.md +++ b/packages/client-helpers/CHANGELOG.md @@ -1,5 +1,11 @@ # @parcnet-js/client-helpers +## 0.0.7 + +### Patch Changes + +- @parcnet-js/client-rpc@0.0.5 + ## 0.0.6 ### Patch Changes diff --git a/packages/client-helpers/package.json b/packages/client-helpers/package.json index 2ae9377..35f6424 100644 --- a/packages/client-helpers/package.json +++ b/packages/client-helpers/package.json @@ -1,6 +1,6 @@ { "name": "@parcnet-js/client-helpers", - "version": "0.0.6", + "version": "0.0.7", "license": "GPL-3.0-or-later", "type": "module", "main": "dist/index.js", @@ -8,7 +8,10 @@ "types": "src/index.ts", "exports": { ".": { - "import": { "types": "./src/index.ts", "import": "./dist/index.js" }, + "import": { + "types": "./src/index.ts", + "import": "./dist/index.js" + }, "require": { "types": "./src/index.ts", "require": "./dist/index.cjs" @@ -45,7 +48,10 @@ "types": "./dist/index.d.ts", "exports": { ".": { - "import": { "types": "./dist/index.d.ts", "import": "./dist/index.js" }, + "import": { + "types": "./dist/index.d.ts", + "import": "./dist/index.js" + }, "require": { "types": "./dist/index.d.cts", "require": "./dist/index.cjs" diff --git a/packages/client-rpc/CHANGELOG.md b/packages/client-rpc/CHANGELOG.md index 051b851..f92eda2 100644 --- a/packages/client-rpc/CHANGELOG.md +++ b/packages/client-rpc/CHANGELOG.md @@ -1,5 +1,12 @@ # @parcnet-js/client-rpc +## 0.0.5 + +### Patch Changes + +- Updated dependencies [0cc537e] + - @parcnet-js/podspec@0.0.4 + ## 0.0.4 ### Patch Changes diff --git a/packages/client-rpc/package.json b/packages/client-rpc/package.json index f2825d8..2ac2ec6 100644 --- a/packages/client-rpc/package.json +++ b/packages/client-rpc/package.json @@ -1,14 +1,17 @@ { "name": "@parcnet-js/client-rpc", "type": "module", - "version": "0.0.4", + "version": "0.0.5", "license": "GPL-3.0-or-later", "main": "dist/index.js", "module": "dist/index.js", "types": "src/index.ts", "exports": { ".": { - "import": { "types": "./src/index.ts", "import": "./dist/index.js" }, + "import": { + "types": "./src/index.ts", + "import": "./dist/index.js" + }, "require": { "types": "./src/index.ts", "require": "./dist/index.cjs" @@ -39,7 +42,10 @@ "types": "dist/index.d.ts", "exports": { ".": { - "import": { "types": "./dist/index.d.ts", "import": "./dist/index.js" }, + "import": { + "types": "./dist/index.d.ts", + "import": "./dist/index.js" + }, "require": { "types": "./dist/index.d.cts", "require": "./dist/index.cjs" diff --git a/packages/podspec/CHANGELOG.md b/packages/podspec/CHANGELOG.md index 434ced1..8713769 100644 --- a/packages/podspec/CHANGELOG.md +++ b/packages/podspec/CHANGELOG.md @@ -1,5 +1,11 @@ # @parcnet-js/podspec +## 0.0.4 + +### Patch Changes + +- 0cc537e: Add entries to config if included in tuples + ## 0.0.3 ### Patch Changes diff --git a/packages/podspec/package.json b/packages/podspec/package.json index 87aa058..ce3d35a 100644 --- a/packages/podspec/package.json +++ b/packages/podspec/package.json @@ -1,6 +1,6 @@ { "name": "@parcnet-js/podspec", - "version": "0.0.3", + "version": "0.0.4", "license": "GPL-3.0-or-later", "main": "dist/index.cjs", "module": "dist/index.js", diff --git a/packages/ticket-spec/CHANGELOG.md b/packages/ticket-spec/CHANGELOG.md index 1dda18b..6a035c5 100644 --- a/packages/ticket-spec/CHANGELOG.md +++ b/packages/ticket-spec/CHANGELOG.md @@ -1,5 +1,13 @@ # @parcnet-js/ticket-utils +## 0.0.3 + +### Patch Changes + +- Updated dependencies [0cc537e] + - @parcnet-js/podspec@0.0.4 + - @parcnet-js/client-rpc@0.0.5 + ## 0.0.2 ### Patch Changes diff --git a/packages/ticket-spec/package.json b/packages/ticket-spec/package.json index 7cb9b11..10e2bfb 100644 --- a/packages/ticket-spec/package.json +++ b/packages/ticket-spec/package.json @@ -1,6 +1,6 @@ { "name": "@parcnet-js/ticket-spec", - "version": "0.0.2", + "version": "0.0.3", "license": "GPL-3.0-or-later", "type": "module", "main": "dist/index.js", @@ -8,7 +8,10 @@ "types": "src/index.ts", "exports": { ".": { - "import": { "types": "./src/index.ts", "import": "./dist/index.js" }, + "import": { + "types": "./src/index.ts", + "import": "./dist/index.js" + }, "require": { "types": "./src/index.ts", "require": "./dist/index.cjs" @@ -42,7 +45,10 @@ "types": "./dist/index.d.ts", "exports": { ".": { - "import": { "types": "./dist/index.d.ts", "import": "./dist/index.js" }, + "import": { + "types": "./dist/index.d.ts", + "import": "./dist/index.js" + }, "require": { "types": "./dist/index.d.cts", "require": "./dist/index.cjs"