Compare commits

...

3 Commits

2 changed files with 122 additions and 0 deletions

View File

@ -0,0 +1,48 @@
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://idhub.pangea.org/context/base.jsonld",
"https://idhub.pangea.org/context/snapshot.jsonld"
],
"id": "urn:uuid:{{ vc_id }}",
"type": [
"VerifiableCredential",
"DeviceSnapshot"
],
"issuer": {
"id": "{{ issuer_did }}",
"name": "{{ organisation }}"
},
"issuanceDate": "{{ issuance_date }}",
"validFrom": "{{ issuance_date }}",
"name": [
{
"value": "Snapshot of Workbench script",
"lang": "en"
}
],
"description": [
{
"value": "Snapshot of Workbench script software for discover hardware",
"lang": "en"
}
],
"credentialSubject": {
"id": "{{ token_hash }}",
"uuid": "{{ uuid }}",
"type": "{{ type }}",
"software": "{{ software }}",
"timestamp": "{{ timestamp }}",
"data": "{{ data }}",
"dataDeletion": "{{ erase }}"
},
"credentialStatus": {
"id": "{{ credential_status_id}}",
"type": "RevocationBitmap2022",
"revocationBitmapIndex": "{{ id_credential }}"
},
"credentialSchema": {
"id": "https://idhub.pangea.org/vc_schemas/v1/workbench.json",
"type": "FullJsonSchemaValidator2021"
}
}

74
schemas/workbench.json Normal file
View File

@ -0,0 +1,74 @@
{
"$id": "https://idhub.pangea.org/vc_schemas/v1/workbench.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "DeviceSnapshot",
"description": "Snapshot create by workbench-script, software for discover hardware in one device.",
"name": [
{
"value": "Snapshot",
"lang": "en"
},
],
"type": "object",
"allOf": [
{
"$ref": "https://www.w3.org/2018/credentials/v1"
},
{
"properties": {
"credentialSubject": {
"description": "Define the properties of a digital device snapshot",
"type": "object",
"properties": {
"id": {
"description": "Defines a hash of id token",
"type": "string",
"minLength": 36
},
"uuid": {
"description": "Defines a unique identifier of the snapshot",
"type": "string",
"minLength": 36
},
"type": {
"type": "string",
"enum": [
"Snapshot"
],
"minLength": 1
},
"software": {
"description": "Name of software used.",
"type": "string",
"enum": [
"workbench-script"
],
"minLength": 1
},
"timestamp": {
"description": "Time when is make this snapshot.",
"type": "date-time"
},
"data": {
"description": "Device details discovery data.",
"type": "string",
},
"dataDeletion": {
"description": "Datas of erase disk process",
"type": "string",
"minLength": 0
}
},
"required": [
"id",
"uuid",
"type",
"software",
"timestamp",
"data"
]
}
}
}
]
}