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:example.com:steel-mill-1"
},
"dpp": {
"context": ["https://dpp-json-ld.s3.ap-southeast-2.amazonaws.com/dppld.json"],
"renderTemplate": [
{
"template": "<!DOCTYPE html>...",
"@type": "WebRenderingTemplate2022"
}
],
"type": ["VerifiableCredential", " DigitalProductPassport"],
"dlrLinkTitle": "Steel Passport",
"dlrIdentificationKeyType": "gtin",
"dlrVerificationPage": "http://localhost:3332/verify"
},
"dlr": {
"dlrAPIUrl": "https://dlr.example.com",
"dlrAPIKey": "5555555555555"
},
"storage": {
"url": "https://storage.example.com/v1/documents",
"params": {
"bucket": "verifiable-credentials",
"resultPath": "/uri"
},
"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 subjectString