diff --git a/apps/client/package.json b/apps/client/package.json index 883ce052..55d1142a 100644 --- a/apps/client/package.json +++ b/apps/client/package.json @@ -16,7 +16,7 @@ "@emotion/react": "^11.10.6", "@emotion/styled": "^11.10.6", "@fontsource-variable/unbounded": "^5.0.5", - "@semaphore-protocol/identity": "3.10.1", + "@semaphore-protocol/identity": "4.7.0", "@web3-react/core": "^6.1.9", "@web3-react/injected-connector": "^6.0.7", "ethers": "^5.4.7", diff --git a/apps/client/src/pages/home.tsx b/apps/client/src/pages/home.tsx index 43886d43..29bc4123 100644 --- a/apps/client/src/pages/home.tsx +++ b/apps/client/src/pages/home.tsx @@ -73,7 +73,7 @@ export default function HomePage(): JSX.Element { const message = `Sign this message to generate your Semaphore identity.` const identity = new Identity(await signer.signMessage(message)) - const identityCommitment = identity.getCommitment().toString() + const identityCommitment = identity.commitment.toString() const hasJoined = await isGroupMember( invite.group.id, @@ -126,7 +126,7 @@ export default function HomePage(): JSX.Element { const message = `Sign this message to generate your Semaphore identity.` const identity = new Identity(await signer.signMessage(message)) - const identityCommitment = identity.getCommitment().toString() + const identityCommitment = identity.commitment.toString() const dashboardUrl = import.meta.env .VITE_DASHBOARD_URL as DashboardUrl diff --git a/libs/api-sdk/README.md b/libs/api-sdk/README.md index f08f01da..21e01288 100644 --- a/libs/api-sdk/README.md +++ b/libs/api-sdk/README.md @@ -479,6 +479,7 @@ const inviteCode = "C5VAG4HD" const apiKey = "70f07d0d-6aa2-4fe1-b4b9-06c271a641dc" const invite = await apiSdk.redeemInvite(inviteCode, groupId, apiKey) +``` ## Get credential group join URL @@ -486,6 +487,7 @@ const invite = await apiSdk.redeemInvite(inviteCode, groupId, apiKey) Returns a custom URL string for joining a credential group. +```ts import { DashboardUrl } from "@bandada/api-sdk" const dashboardUrl = DashboardUrl.DEV diff --git a/yarn.lock b/yarn.lock index 04cac868..8ed1891a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8759,19 +8759,6 @@ __metadata: languageName: node linkType: hard -"@semaphore-protocol/identity@npm:3.10.1": - version: 3.10.1 - resolution: "@semaphore-protocol/identity@npm:3.10.1" - dependencies: - "@ethersproject/bignumber": "npm:^5.5.0" - "@ethersproject/keccak256": "npm:^5.7.0" - "@ethersproject/random": "npm:^5.5.1" - "@ethersproject/strings": "npm:^5.6.1" - js-sha512: "npm:^0.8.0" - checksum: 10/402344e37770d0cdc14527cf4ceb96376bf5015788e120a043802804deea945d0dabe593036df70c7d76ec9f104faa7f91fc5a2a39e7743e91f7d9cc7b3b894e - languageName: node - linkType: hard - "@semaphore-protocol/identity@npm:3.9.0": version: 3.9.0 resolution: "@semaphore-protocol/identity@npm:3.9.0" @@ -14350,7 +14337,7 @@ __metadata: "@emotion/react": "npm:^11.10.6" "@emotion/styled": "npm:^11.10.6" "@fontsource-variable/unbounded": "npm:^5.0.5" - "@semaphore-protocol/identity": "npm:3.10.1" + "@semaphore-protocol/identity": "npm:4.7.0" "@types/react": "npm:^18.0.27" "@types/react-dom": "npm:^18.0.10" "@vitejs/plugin-react": "npm:^3.1.0"