Process DPP
info
Please note that this content is under development and is not ready for implementation. This status message will be updated as content development progresses.
Description
The processDPP
service is responsible for processing a Digital Product Passport (DPP), issuing a Verifiable Credential (VC), uploading it to the Storage service, and registering the link to the stored DPP with the Identity Resolver service. It handles the entire lifecycle of creating and managing a DPP, from data input to storage and resolution.
Diagram
Example
{
"name": "processDPP",
"parameters": [
{
"vckit": {
"vckitAPIUrl": "http://localhost:3332/v2",
"issuer": "did:web:uncefact.github.io:project-vckit:test-and-development",
"headers": {
"Authorization": "Bearer test123"
}
},
"dpp": {
"context": ["https://dpp-json-ld.s3.ap-southeast-2.amazonaws.com/dppld.json"],
"renderTemplate": [
{
"template": "<!DOCTYPE html>...",
"@type": "WebRenderingTemplate2022"
}
],
"type": ["DigitalProductPassport"],
"dlrLinkTitle": "Steel Passport",
"dlrIdentificationKeyType": "gtin",
"dlrVerificationPage": "http://localhost:3332/verify"
},
"dlr": {
"dlrAPIUrl": "https://dlr.example.com",
"dlrAPIKey": "5555555555555",
"namespace": "gs1",
"linkRegisterPath": "/api/resolver"
},
"storage": {
"url": "http://localhost:3334/v1/documents",
"params": {
"resultPath": "/uri",
"bucket": "verifiable-credentials"
},
"options": {
"method": "POST",
"headers": {
"Content-Type": "application/json"
}
}
},
"identifierKeyPath": "/product/itemIdentifiers/0/identifierValue"
}
]
}
Definitions
Property | Required | Description | Type |
---|---|---|---|
vckit | Yes | Configuration for the VCKit service | VCKit |
dpp | Yes | Configuration for the Digital Product Passport | DPP |
dlr | Yes | Configuration for the Digital Link Resolver | IDR |
storage | Yes | Configuration for storage service | Storage |
identifierKeyPath | Yes | JSON path to the identifier in the credential subject or the object for function and arguments of JSON path to construct identifier | IdentifierKeyPath |