From cfaddd2ed9f6efa1b8c10ddb9bd01412a3760524 Mon Sep 17 00:00:00 2001 From: Pulkit Mittal Date: Tue, 18 Jun 2024 17:28:37 +0530 Subject: [PATCH 1/5] changed twitter handle --- README.md | 2 +- docusaurus.config.js | 2 +- src/theme/Footer/index.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 89452ef..97456da 100755 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@

- +
diff --git a/docusaurus.config.js b/docusaurus.config.js index dd0b20b..67b95d4 100755 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -186,7 +186,7 @@ module.exports = { "aria-label": "GitHub repository", }, { - href: "https://x.com/Privado_ID", + href: "https://x.com/PrivadoID", position: "right", className: "header-twitter-link", }, diff --git a/src/theme/Footer/index.js b/src/theme/Footer/index.js index ad4bee5..6cf9b2d 100644 --- a/src/theme/Footer/index.js +++ b/src/theme/Footer/index.js @@ -92,7 +92,7 @@ function Footer() {

From 70a4f68f575164a16bb3cf09227252ec1b19a695 Mon Sep 17 00:00:00 2001 From: Pulkit Mittal Date: Tue, 18 Jun 2024 17:30:49 +0530 Subject: [PATCH 2/5] remove beta-note for js-sdk --- docs/js-sdk/js-sdk-overview.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/docs/js-sdk/js-sdk-overview.md b/docs/js-sdk/js-sdk-overview.md index 07e84ec..f2c2d0f 100644 --- a/docs/js-sdk/js-sdk-overview.md +++ b/docs/js-sdk/js-sdk-overview.md @@ -124,8 +124,4 @@ On the Polygon ID JS SDK, you can build the following functionalities:
-:::note - -As our JS SDK is still in the public beta stage, you might find a few functionalities missing or not fully updated. -::: From afa97014b0989a6dbce9205ad3cfe8412a5efff5 Mon Sep 17 00:00:00 2001 From: Pulkit Mittal Date: Wed, 3 Jul 2024 19:05:49 +0530 Subject: [PATCH 3/5] web wallet docs updated --- docs/web-wallet.md | 80 +++++++++++----------------------------------- 1 file changed, 18 insertions(+), 62 deletions(-) diff --git a/docs/web-wallet.md b/docs/web-wallet.md index bef0bae..4c7abb3 100644 --- a/docs/web-wallet.md +++ b/docs/web-wallet.md @@ -47,11 +47,15 @@ The tool still supports the verification of other credentials, which can be issu - **On-Chain and Off-Chain Query Verification**: Supporting both on-chain and off-chain query verification, the Web Wallet offers flexibility to meet diverse verification needs. - **Consistency and Accuracy**: With a standardized interface, the tool promotes uniformity across users and organizations, minimizing errors. +:::note +On-Chain Verification would be supported soon. +::: + ## Getting Started -You can experience a demo of the Web Wallet by visiting this [link](https://web-wallet-demo.internal-polygonid-prod.com/) +You can experience a demo of the Web Wallet by visiting this [link](https://web-wallet-demo.privado.id/) ## User Interface and Experience @@ -94,6 +98,10 @@ The verification can be performed in two ways: - [Off-Chain verification](./verifier/verification-library/verifier-library-intro) - [On-Chain verification](./verifier/on-chain-verification/overview) +:::note +On-Chain Verification would be supported soon. +::: + :::note The server setup for Off-Chain Verification and the Smart Contract setup for On-Chain Verification, as detailed in the provided links, remain unchanged. The only modification required is in the client side of the application. Previously, proof requests could only be shared via embedded QR codes. Now, verifiers have a new, more efficient method for requesting proofs from users by leveraging the Web Wallet. @@ -111,18 +119,10 @@ In Case of Off-Chain Verification, once the user goes through the flow of verifi Integrating the tool on the client side is straightforward. Simply redirect users from your application to the Web Wallet URL. This URL must include the verification request encoded in base64 in the fragment of the URL. - - -```bash -https://web-wallet-test.polygonid.me/#base64EncodedData -``` - - - - + ```bash -https://web-wallet.polygonid.me/#base64EncodedData +https://wallet.privado.id/#base64EncodedData ``` @@ -150,7 +150,7 @@ const verificationRequest = { circuitId: "credentialAtomicQuerySigV2", id: 1711399135, query: { - allowedIssuers: ["*"], + allowedIssuers: ["did:polygonid:polygon:amoy:2qV9QXdhXXmN5sKjN1YueMjxgRbnJcEGK2kGpvk3cq"], context: "https://raw.githubusercontent.com/anima-protocol/claims-polygonid/main/schemas/json-ld/pol-v1.json-ld", type: "AnimaProofOfLife", @@ -170,61 +170,17 @@ const verificationRequest = { const base64EncodedVerificationRequest = btoa(JSON.stringify(verificationRequest)); // Open the Polygon ID Verification Web Wallet with the encoded verification request -window.open(`https://web-wallet-test.polygonid.me/#${base64EncodedVerificationRequest}`); -``` - - - - - -```js -// Define the verification request -const verificationRequest = { - backUrl: "https://my-app.org/back", - finishUrl: "https://my-app.org/finish", - logoUrl: "https://my-app.org/logo.png", - name: "My app", - zkQueries: [ - { - circuitId: "credentialAtomicQuerySigV2OnChain", - id: 1713976575, - query: { - allowedIssuers: ["*"], - context: - "https://raw.githubusercontent.com/anima-protocol/claims-polygonid/main/schemas/json-ld/pol-v1.json-ld", - type: "AnimaProofOfLife", - credentialSubject: { - human: { - $eq: true, - }, - }, - }, - }, - ], - verifierDid: "did:polygonid:polygon:amoy:2qV9QXdhXXmN5sKjN1YueMjxgRbnJcEGK2kGpvk3cq", - transactionData: { - contractAddress: "0x62811c9e1C8b2397767779BC8ff5Ca48869a61Fc", - functionName: "submitZKPResponse", - methodId: "0xb68967e2", - chainId: 80002, - network: "polygon-amoy", - }, -}; -// Encode the verification request to base64 -const base64EncodedVerificationRequest = btoa(JSON.stringify(verificationRequest)); - -// Open the Polygon ID Verification Web Wallet with the encoded verification request -window.open(`https://web-wallet-test.polygonid.me/#${base64EncodedVerificationRequest}`); +window.open(`https://wallet.privado.id/#${base64EncodedVerificationRequest}`); ``` -:::warning "Allowed Issuers" + `backUrl` represents the URL of your application where the user will be redirected when they click the ‘Back’ button @@ -242,11 +198,11 @@ Currently, only one zk-query can be verified in a verification request. However, `verifierDiD` represents the DiD of the verifier (your DID). -**For off-chain verifications only**: + `callbackUrl` represents the URL of the API endpoint of your verifier backend server which handles the callback. -**For on-chain verifications only**: + From 586ae65111ccb688df6707160f9424fda64bc048 Mon Sep 17 00:00:00 2001 From: Pulkit Mittal Date: Wed, 3 Jul 2024 19:50:47 +0530 Subject: [PATCH 4/5] changed issuer and verifier did in the example --- docs/web-wallet.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/web-wallet.md b/docs/web-wallet.md index 4c7abb3..b2e8ffa 100644 --- a/docs/web-wallet.md +++ b/docs/web-wallet.md @@ -150,7 +150,7 @@ const verificationRequest = { circuitId: "credentialAtomicQuerySigV2", id: 1711399135, query: { - allowedIssuers: ["did:polygonid:polygon:amoy:2qV9QXdhXXmN5sKjN1YueMjxgRbnJcEGK2kGpvk3cq"], + allowedIssuers: ["did:iden3:privado:main:2ScrbEuw9jLXMapW3DELXBbDco5EURzJZRN1tYj7L7"], context: "https://raw.githubusercontent.com/anima-protocol/claims-polygonid/main/schemas/json-ld/pol-v1.json-ld", type: "AnimaProofOfLife", @@ -163,7 +163,7 @@ const verificationRequest = { }, ], callbackUrl: "https://my-app.org/api/callback", - verifierDid: "did:polygonid:polygon:amoy:2qV9QXdhXXmN5sKjN1YueMjxgRbnJcEGK2kGpvk3cq", + verifierDid: "did:iden3:linea:sepolia:28itzVLBHnMJV8sdjyffcAtWCx8HZ7btdKXxs7fJ6v", }; // Encode the verification request to base64 From 638d1ec6b5900f48abb9b23e3a2e7ac9c75ceb07 Mon Sep 17 00:00:00 2001 From: Pulkit Mittal Date: Wed, 3 Jul 2024 19:56:04 +0530 Subject: [PATCH 5/5] minor fix --- docs/web-wallet.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/web-wallet.md b/docs/web-wallet.md index b2e8ffa..8b2ded4 100644 --- a/docs/web-wallet.md +++ b/docs/web-wallet.md @@ -163,7 +163,7 @@ const verificationRequest = { }, ], callbackUrl: "https://my-app.org/api/callback", - verifierDid: "did:iden3:linea:sepolia:28itzVLBHnMJV8sdjyffcAtWCx8HZ7btdKXxs7fJ6v", + verifierDid: "did:iden3:privado:main:28itzVLBHnMJV8sdjyffcAtWCx8HZ7btdKXxs7fJ6v", }; // Encode the verification request to base64