Skip to main content

Process Digital Identity Anchor

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 processDigitalIdentityAnchor service is responsible for processing a digital identity anchor, issuing a Verifiable Credential (VC), uploading it to the Storage service, registering the link to the stored digital identity anchor with the Identity Resolver service. It handles the entire lifecycle of creating and managing a digital identity anchor, from data input to storage and resolution.

Diagram

Example

{
"name": "processDigitalIdentityAnchor",
"parameters": [
{
"vckit": {
"vckitAPIUrl": "http://localhost:3332/v2",
"issuer": "did:web:uncefact.github.io:project-vckit:test-and-development",
"headers": {
"Authorization": "Bearer test123"
}
},
"digitalIdentityAnchor": {
"context": ["https://www.w3.org/2018/credentials/v1", "https://gs1.org/voc/"],
"type": ["DigitalIdentityAnchor"],
"renderTemplate": [
{
"template": "<div><h2>DigitalIdentityAnchor</h2></div>",
"@type": "WebRenderingTemplate2022"
}
],
"dlrLinkTitle": "DigitalIdentityAnchor",
"dlrVerificationPage": "https://verify.example.com",
"validUntil": "2025-11-28T04:47:15.136Z"
},
"storage": {
"url": "http://localhost:3334/v1/documents",
"params": {
"bucket": "verifiable-credentials"
},
"options": {
"method": "POST",
"headers": {
"Content-Type": "application/json"
}
}
},
"dlr": {
"dlrAPIUrl": "https://dlr.example.com/api",
"dlrAPIKey": "dlr-api-key-12345",
"namespace": "gs1",
"linkRegisterPath": "/api/resolver"
},
"identifierKeyPath": "/id"
}
]
}

Definitions

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

Function type

TypeDescription
ReturnDataIt processes the input data or generates data independently and returns the processed result after successful execution.