Skip to main content

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

PropertyRequiredDescriptionType
vckitYesConfiguration for the VCKit serviceVCKit
dppYesConfiguration for the Digital Product PassportDPP
dlrYesConfiguration for the Digital Link ResolverIDR
storageYesConfiguration for storage serviceStorage
identifierKeyPathYesJSON path to the identifier in the credential subject or the object for function and arguments of JSON path to construct identifierIdentifierKeyPath