diff --git a/404.html b/404.html index e3bc11a5..0f9d1662 100644 --- a/404.html +++ b/404.html @@ -4,7 +4,7 @@
{
"name": "Steel Mill 1",
"type": "producer",
"features": [
{
"name": "Issue DPP",
"id": "produce_product",
"components": [
{
"name": "ConformityCredentialCheckbox",
"type": "EntryData"
},
{
"name": "JsonForm",
"type": "EntryData",
"props": {
"schema": {
/* Your DPP JSON schema */
},
"constructData": {
"mappingFields": [
{
"sourcePath": "/{app_name}/0/url",
"destinationPath": "/credentialSubject/conformityClaim/0/conformityEvidence/reference"
}
]
}
}
},
{
"name": "CustomButton",
"type": "Submit",
"props": {
"label": "Submit",
"description": "Click to submit the form"
}
}
],
"services": [
{
/* Services to issue DPP */
}
]
}
]
}
The Local Storage Loader component loads data from local storage and provides it to nested components. Here's how you can use it to load and incorporate Conformity Credentials:
-{
"name": "Steel Mill 1",
"type": "producer",
"features": [
{
"name": "Issue DPP",
"id": "produce_product",
"components": [
{
"name": "LocalStorageLoader",
"type": "EntryData",
"props": {
"storageKey": "Farm_conformity_credentials",
"nestedComponents": [
{
"name": "JsonForm",
"type": "EntryData",
"props": {
"schema": {
/* Your DPP JSON schema */
},
"constructData": {
"mappingFields": [
{
"sourcePath": "/{app_name}/0/url",
"destinationPath": "/credentialSubject/conformityClaim/0/conformityEvidence/reference"
}
]
}
}
},
{
"name": "CustomButton",
"type": "Submit",
"props": {
"label": "Submit",
"description": "Click to submit the form"
}
}
]
}
}
],
"services": [
{
/* Services to issue DPP */
}
]
}
]
}
{
"name": "Steel Mill 1",
"type": "producer",
"features": [
{
"name": "Issue DPP",
"id": "produce_product",
"components": [
{
"name": "LocalStorageLoader",
"type": "EntryData",
"props": {
"storageKey": "Farm_conformity_credentials",
"nestedComponents": [
{
"name": "JsonForm",
"type": "EntryData",
"props": {
"schema": {
/* Your DPP JSON schema */
},
"constructData": {
"mappingFields": [
{
"sourcePath": "/{app_name}/0/url",
"destinationPath": "/credentialSubject/conformityClaim/0/conformityEvidence/reference"
}
]
}
}
},
{
"name": "CustomButton",
"type": "Submit",
"props": {
"label": "Submit",
"description": "Click to submit the form"
}
}
]
}
}
],
"services": [
{
/* Services to issue DPP */
}
]
}
]
}
In the mock app system, credentials imported from the local storage service return a URI, and optionally, a hash and key if encrypted. This URI is now used to construct the verify URL with the following format:
+{verify_app_address}?q={payload:{uri:{uri_of_credential}, key:{decryption_key}, hash:{hash_of_credential}}}
The verify URL should include the URI, and if encryption exists, the hash and key. The verify URL directs to the "verify" page of the mock app.