Process Digital Conformity Credential
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 processDigitalConformityCredential
service is responsible for processing a digital conformity credential, issuing a Verifiable Credential (VC), uploading it to the Storage service, registering the link to the stored digital conformity credential with the Identity Resolver service. It handles the entire lifecycle of creating and managing a digital conformity credential, from data input to storage and resolution.
Diagram
Example
{
"name": "processDigitalConformityCredential",
"parameters": [
{
"vckit": {
"vckitAPIUrl": "http://localhost:3332/v2",
"issuer": "did:web:uncefact.github.io:project-vckit:test-and-development",
"headers": {
"Authorization": "Bearer test123"
}
},
"digitalConformityCredential": {
"context": [
"https://jargon.sh/user/unece/ConformityCredential/v/0.5.0/artefacts/jsonldContexts/ConformityCredential.jsonld?class=ConformityCredential"
],
"type": ["DigitalConformityCredential"],
"renderTemplate": [
{
"template": "<div><h2>DigitalConformityCredential</h2></div>",
"@type": "WebRenderingTemplate2022"
}
],
"dlrIdentificationKeyType": "gtin",
"dlrLinkTitle": "DigitalConformityCredential",
"dlrVerificationPage": "https://verify.example.com"
},
"storage": {
"url": "https://storage.example.com/upload",
"params": {
"bucket": "bucket-name",
"resultPath": "/url"
}
},
"dlr": {
"dlrAPIUrl": "https://dlr.example.com/api",
"dlrAPIKey": "dlr-api-key-12345",
"namespace": "gs1",
"linkRegisterPath": "/api/resolver"
},
"identifierKeyPath": "/id"
}
]
}
Definitions
Property | Required | Description | Type |
---|---|---|---|
vckit | Yes | Configuration for the VCKit service | VCKit |
digitalConformityCredential | Yes | Configuration for the Digital Conformity Credential | Credential |
storage | Yes | Configuration for storage service | Storage |
dlr | Yes | Configuration for the Digital Link Resolver | IDR |
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 |