IdHub/idhub/templates/credentials/device-snapshot-v1.json

62 lines
1.4 KiB
JSON
Raw Normal View History

2024-11-21 11:39:34 +00:00
{
"@context": [
2024-11-25 19:18:47 +00:00
"https://www.w3.org/2018/credentials/v1"
2024-11-21 11:39:34 +00:00
],
"type": ["VerifiableCredential", "DeviceSnapshot"],
"issuer": "{{ issuer_did }}",
"issuanceDate": "{{ issuance_date }}",
"credentialSubject": {
2024-11-25 19:18:47 +00:00
"operatorId": "123456789011121314",
2024-11-21 11:39:34 +00:00
"uuid": "{{ uuid }}",
"type": "hardwareList",
"software": "workbench-script",
"deviceId": [
{
"name": "Manufacturer",
"value": "{{ manufacturer }}"
},
{
"name": "Model",
"value": "{{ model }}"
},
{
"name": "Serial",
"value": "{{ serial_number }}"
},
{
"name": "SKU",
"value": "{{ sku }}"
},
{
"name": "EthernetMacAddress",
"value": "{{ mac }}"
}
],
"timestamp": "{{ issuance_date }}"
},
"evidence": [
{
"type": "HardwareList",
"operation": "dmidecode",
"output": "{{ dmidecode }}",
"timestamp": "{{ issuance_date }}"
},
{
"type": "HardwareList",
2024-11-25 19:18:47 +00:00
"operation": "smartctl",
2024-11-21 11:39:34 +00:00
"output": "{{ smartctl }}",
"timestamp": "{{ issuance_date }}"
},
{
"type": "HardwareList",
2024-11-25 19:18:47 +00:00
"operation": "inxi",
2024-11-21 11:39:34 +00:00
"output": "{{ inxi }}",
"timestamp": "{{ issuance_date }}"
}
],
"credentialSchema": {
2024-11-25 19:18:47 +00:00
"id": "https://idhub.pangea.org/vc_schemas/device-snapshot-v1.json",
2024-11-21 11:39:34 +00:00
"type": "FullJsonSchemaValidator2021"
}
}