Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/w3c-context/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ The package includes the following pre-cached contexts:
- `https://trustvc.io/context/qrcode-context.json` - QR Code
- `https://trustvc.io/context/opencerts-context.json` - OpenCerts Certificate
- `https://trustvc.io/context/bill-of-exchange.json` - Bill of Exchange

- `https://trustvc.io/context/bill-of-lading.json` - Bill of Lading
- `https://trustvc.io/context/bill-of-lading-carrier.json` - Bill of Lading Carrier
- `https://trustvc.io/context/coo.json` - Certificate of Origin
Expand Down
59 changes: 59 additions & 0 deletions packages/w3c-context/samples/bill-of-exchange.sample.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://w3id.org/security/data-integrity/v2",
"https://trustvc.io/context/render-method-context-v2.json",
"https://trustvc.io/context/bill-of-exchange.json",
"https://trustvc.io/context/transferable-records-context.json",
"https://trustvc.io/context/qrcode-context.json"
],
"renderMethod": [
{
"type": "EMBEDDED_RENDERER",
"templateName": "BILL_OF_EXCHANGE",
"id": "https://generic-templates.tradetrust.io"
}
],
"credentialSubject": {
"boeNumber": "BOE-2026-00147",
"placeOfIssue": "Singapore",
"dateOfIssue": "2026-07-01",
"tenor": "90 days after sight",
"drawerCompanyName": "Meridian Commodities Pte Ltd",
"drawerCompanyNo": "UEN-202312345A",
"drawerJurisdiction": "Singapore",
"drawerAddress": "8 Marina Boulevard, #24-01, Singapore 018981",
"drawerEmail": "trade.finance@meridiancommodities.com",
"drawerWalletAddress": "0x71bE63f3384f5fb98995898A86B02Fb2426c5788",
"draweeCompanyName": "Fairview Industries Inc.",
"draweeCompanyNo": "EIN-84-1923456",
"draweeJurisdiction": "Delaware, United States",
"draweeAddress": "1201 Market Street, Suite 900, Wilmington, DE 19801, USA",
"draweeEmail": "accounts.payable@fairviewindustries.com",
"draweeWalletAddress": "0x8626f6940E2eb28930eFb4CeF49B2d1F2C9C1199",
"payeeCompanyName": "Meridian Commodities Pte Ltd",
"payeeWalletAddress": "0x71bE63f3384f5fb98995898A86B02Fb2426c5788",
"dueDate": "2026-09-29",
"currency": "USD",
"amount": "128,500.00",
"amountInWords": "One hundred twenty-eight thousand five hundred United States Dollars only",
"clause": "Pay against this Bill of Exchange, on the tenor stated above, to the order of the Payee the sum stated, value received, without set-off, deduction or counterclaim, for goods shipped under Invoice No. INV-2026-0456 and Bill of Lading No. BL-SIN-2026-0781.",
"signerName": "Wei Ling Tan",
"signerPosition": "Director of Trade Finance",
"signerEmail": "wl.tan@meridiancommodities.com",
"signerTimeStamp": "2026-07-01"
},
"type": [
"VerifiableCredential"
],
"credentialStatus": {
"type": "TransferableRecords",
"tokenNetwork": {
"chain": "Sepolia",
"chainId": 11155111
},
"tokenRegistry": "0x9A2B1e4C8f3D5a6B7c8D9E0F1A2B3C4D5E6F7A8B"

Check failure on line 55 in packages/w3c-context/samples/bill-of-exchange.sample.json

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

"token" detected here, make sure this is not a hard-coded secret.

See more on https://sonarcloud.io/project/issues?id=TrustVC_w3c&issues=AZ-yGaDsXGbYiJBB2ja1&open=AZ-yGaDsXGbYiJBB2ja1&pullRequest=107
},
"issuer": "did:web:trustvc.github.io:did:1",
"validFrom": "2026-07-01T09:00:00Z"
}
Loading