diff --git a/docs/getting-started.md b/docs/getting-started.md index 6915cdf..1dd7be1 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -161,7 +161,7 @@ TrustVC supports on-chain verification across the following networks: | Network | Code | Chain ID | |---|---|---| | Ethereum | ETH | 1 | -| Polygon | MATIC | 137 | +| Polygon | POL | 137 | | XDC | XDC | 50 | | Stability | FREE | 101010 | | Astron | ASTRON | 1338 | @@ -171,7 +171,7 @@ TrustVC supports on-chain verification across the following networks: | Network | Code | Chain ID | |---|---|---| | Sepolia (Ethereum) | ETH | 11155111 | -| Amoy (Polygon) | MATIC | 80002 | +| Amoy (Polygon) | POL | 80002 | | XDC Apothem | XDC | 51 | | Stability Testnet | FREE | 20180427 | | Astron Testnet | ASTRON | 21002 | diff --git a/docs/how-tos/contexts.md b/docs/how-tos/contexts.md index cde7aff..9207667 100644 --- a/docs/how-tos/contexts.md +++ b/docs/how-tos/contexts.md @@ -178,7 +178,7 @@ For detailed instructions on fixing CORS errors, see the [CORS Errors guide](/do "credentialStatus": { "type": "TransferableRecords", "tokenNetwork": { - "chain": "MATIC", + "chain": "POL", "chainId": "80002" }, "tokenRegistry": "0xH3C2..." @@ -188,7 +188,7 @@ For detailed instructions on fixing CORS errors, see the [CORS Errors guide](/do #### **Field Details** - **`type`**: Defines the status type (TransferableRecords). - **`tokenNetwork`**: Specifies the blockchain details: -- **`chain`**: Blockchain network name (e.g., MATIC). +- **`chain`**: Blockchain network name (e.g., POL for Polygon mainnet, POL for Amoy testnet). - **`chainId`**: Blockchain ID (e.g., 80002 for Amoy network). - **`tokenRegistry`**: Address of the token registry contract. diff --git a/docs/how-tos/credential-status.md b/docs/how-tos/credential-status.md index 0b47982..6bfdca3 100644 --- a/docs/how-tos/credential-status.md +++ b/docs/how-tos/credential-status.md @@ -57,7 +57,7 @@ const rawDocument = { credentialStatus: { type: "TransferableRecords", tokenNetwork: { - chain: "MATIC", + chain: "POL", chainId: "80002", }, tokenRegistry: "0xH3C2...", // Address of the Token Registry deployed diff --git a/docs/how-tos/decentralized-renderer/using-generic-templates.md b/docs/how-tos/decentralized-renderer/using-generic-templates.md index 42b4bca..817dd13 100644 --- a/docs/how-tos/decentralized-renderer/using-generic-templates.md +++ b/docs/how-tos/decentralized-renderer/using-generic-templates.md @@ -87,7 +87,7 @@ Each template requires specific data fields. Below are examples for common templ "credentialStatus": { "type": "TransferableRecords", "tokenNetwork": { - "chain": "MATIC", + "chain": "POL", "chainId": "80002" }, "tokenRegistry": "0x3652efbc80ace560844afc932d2bf8b452a96c6d", diff --git a/docs/how-tos/issuer/dns-did.md b/docs/how-tos/issuer/dns-did.md index 1f4c6a0..8a28310 100644 --- a/docs/how-tos/issuer/dns-did.md +++ b/docs/how-tos/issuer/dns-did.md @@ -97,7 +97,7 @@ Example of a DNS-DID signed document: ## Hands-on Creating a DNS-DID -Before we start creating the DNS-DID, please take note that this method **does not require** any ethers/matic (cryptocurrency) to begin. Which means if you use this method, your verifiable document that you will generate will be free! +Before we start creating the DNS-DID, please take note that this method **does not require** any ethers/POL (cryptocurrency) to begin. Which means if you use this method, your verifiable document that you will generate will be free! Also, please make sure you have completed the prerequisites listed below. ### Prerequisites diff --git a/docs/how-tos/issuer/dns-txt.md b/docs/how-tos/issuer/dns-txt.md index 255403a..bedcaea 100644 --- a/docs/how-tos/issuer/dns-txt.md +++ b/docs/how-tos/issuer/dns-txt.md @@ -40,7 +40,7 @@ Have a better understanding about our different document types: [verifiable docu ## Hands-on Creating a DNS-TXT Record -Before we start creating the DNS-TXT records, please take note that this method **requires** ethers/matic (cryptocurrency) to begin. +Before we start creating the DNS-TXT records, please take note that this method **requires** ethers/POL (cryptocurrency) to begin. Also, please make sure you have completed the prerequisites listed below. ### Prerequisites diff --git a/docs/tutorial/creator.md b/docs/tutorial/creator.md index 3530641..75a335c 100644 --- a/docs/tutorial/creator.md +++ b/docs/tutorial/creator.md @@ -618,7 +618,7 @@ curl --location 'http://localhost:3000/create/bill_of_lading' \ --data '{"credentialSubject": {"type": ["BillOfLading"],"shipperAddressStreet": "","consigneeName": "","notifyPartyName": "","blNumber": "20250107","scac": "20250107"},"owner": "0xCA93690Bb57EEaB273c796a9309246BC0FB93649","holder": "0xCA93690Bb57EEaB273c796a9309246BC0FB93649"}' output: -{"signedW3CDocument":{"@context":["https://www.w3.org/ns/credentials/v2","https://w3id.org/security/data-integrity/v2","https://trustvc.io/context/transferable-records-context.json","https://trustvc.io/context/render-method-context-v2.json","https://trustvc.io/context/attachments-context.json","https://trustvc.io/context/bill-of-lading.json"],"type":["VerifiableCredential"],"credentialStatus":{"type":"TransferableRecords","tokenNetwork":{"chain":"MATIC","chainId":"80002"},"tokenRegistry":"0x3652efbc80ace560844afc932d2bf8b452a96c6d","tokenId":"b91d5b4dfcc23d33f7be4f2620dd569c89987e8299bc4b67f6edb95b0bbbb46b"},"renderMethod":[{"id":"https://generic-templates.tradetrust.io","type":"EMBEDDED_RENDERER","templateName":"BILL_OF_LADING"}],"credentialSubject":{"type":["BillOfLading"],"shipperAddressStreet":"","consigneeName":"","notifyPartyName":"","blNumber":"20250107","scac":"20250107"},"validFrom":"2025-06-30T08:58:15.679Z","validUntil":"2025-09-30T08:58:15.679Z","issuer":"did:web:did.trustvc.io","id":"urn:bnid:_:0197c00e-f6ff-755b-88a2-a9e2f3974140","proof":{"type":"DataIntegrityProof","created":"2025-06-30T08:58:16Z", +{"signedW3CDocument":{"@context":["https://www.w3.org/ns/credentials/v2","https://w3id.org/security/data-integrity/v2","https://trustvc.io/context/transferable-records-context.json","https://trustvc.io/context/render-method-context-v2.json","https://trustvc.io/context/attachments-context.json","https://trustvc.io/context/bill-of-lading.json"],"type":["VerifiableCredential"],"credentialStatus":{"type":"TransferableRecords","tokenNetwork":{"chain":"POL","chainId":"80002"},"tokenRegistry":"0x3652efbc80ace560844afc932d2bf8b452a96c6d","tokenId":"b91d5b4dfcc23d33f7be4f2620dd569c89987e8299bc4b67f6edb95b0bbbb46b"},"renderMethod":[{"id":"https://generic-templates.tradetrust.io","type":"EMBEDDED_RENDERER","templateName":"BILL_OF_LADING"}],"credentialSubject":{"type":["BillOfLading"],"shipperAddressStreet":"","consigneeName":"","notifyPartyName":"","blNumber":"20250107","scac":"20250107"},"validFrom":"2025-06-30T08:58:15.679Z","validUntil":"2025-09-30T08:58:15.679Z","issuer":"did:web:did.trustvc.io","id":"urn:bnid:_:0197c00e-f6ff-755b-88a2-a9e2f3974140","proof":{"type":"DataIntegrityProof","created":"2025-06-30T08:58:16Z", "cryptosuite": "ecdsa-sd-2023","proofPurpose":"assertionMethod","proofValue":"hZXGbdsA9oFArnVg2yjpoR6M+FOL8JDsRyngG/56y7V6GVWfWJPjHOLvizcolJDIBZv2+0Ch0WCIYewp/jE2bGDy4XALHFGj8hM5lW5hB4kio0Kglkol4OlKw+eZ8ujstHAB9XhFu7/XwAcKOB02TQ==","verificationMethod":"did:web:did.trustvc.io#keys-1"}},"txHash":"0x2b57d581fd1434d5e9409af65d33358bc8436f2b9c412d2e7c687217500a58c9"} ``` diff --git a/docs/tutorial/decentralized-renderer.md b/docs/tutorial/decentralized-renderer.md index dc02f67..ba49958 100644 --- a/docs/tutorial/decentralized-renderer.md +++ b/docs/tutorial/decentralized-renderer.md @@ -182,7 +182,7 @@ export const BillOfLadingSample: BillOfLadingSchemaW3C = { credentialStatus: { type: "TransferableRecords", tokenNetwork: { - chain: "MATIC", + chain: "POL", chainId: "80002", }, tokenRegistry: "0x3652efbc80ace560844afc932d2bf8b452a96c6d",