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/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. -::: diff --git a/docs/web-wallet.md b/docs/web-wallet.md index bef0bae..8b2ded4 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:iden3:privado:main:2ScrbEuw9jLXMapW3DELXBbDco5EURzJZRN1tYj7L7"], context: "https://raw.githubusercontent.com/anima-protocol/claims-polygonid/main/schemas/json-ld/pol-v1.json-ld", type: "AnimaProofOfLife", @@ -163,68 +163,24 @@ const verificationRequest = { }, ], callbackUrl: "https://my-app.org/api/callback", - verifierDid: "did:polygonid:polygon:amoy:2qV9QXdhXXmN5sKjN1YueMjxgRbnJcEGK2kGpvk3cq", + verifierDid: "did:iden3:privado:main:28itzVLBHnMJV8sdjyffcAtWCx8HZ7btdKXxs7fJ6v", }; // 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}`); -``` - - - - - -```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**: + 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() {