From 22e21a259ce88071745e66a4432140983dce0876 Mon Sep 17 00:00:00 2001 From: pstlouis Date: Fri, 14 Jun 2024 15:02:22 -0400 Subject: [PATCH] CC schema/example update proposal Signed-off-by: pstlouis --- .../specification/ConformityCredential.md | 410 +++++++++--------- 1 file changed, 199 insertions(+), 211 deletions(-) diff --git a/website/docs/specification/ConformityCredential.md b/website/docs/specification/ConformityCredential.md index 19770a39..d888634d 100644 --- a/website/docs/specification/ConformityCredential.md +++ b/website/docs/specification/ConformityCredential.md @@ -377,91 +377,49 @@ https://vocabulary.uncefact.org/UnitMeasureCode ``` { - "id": "http://example.com", - "assessorLevel": "Self", - "assessmentLevel": "GovtApproval", - "type": "certification", - "description": "string", - "scope": { - "id": "http://example.com", - "name": "string", - "trustmark": { - "fileHash": "string", - "fileLocation": "http://example.com", - "fileType": "string", - "EncryptionMethod": "none" - }, - "issuingBody": { - "identifiers": [ - { - "scheme": "http://example.com", - "identiferValue": "string", - "identifierURI": "http://example.com", - "verificationEvidence": { - "format": "w3c_vc", - "credentialReference": "http://example.com" - } - } - ], - "name": "string" - }, - "dateOfIssue": "2019-08-24" - }, - "issuedBy": { - "identifiers": [ - { - "scheme": "http://example.com", - "identiferValue": "string", - "identifierURI": "http://example.com", - "verificationEvidence": { - "format": "w3c_vc", - "credentialReference": "http://example.com" - } - } - ], - "name": "string" + "@context": [ + "https://www.w3.org/ns/credentials/v2", + "https://test.uncefact.org/spec-untp/untp-v1" + ], + "type": ["VerifiableCredential", "ConformityCredential", "ExampleCredential"], + "id": "https://example.com/credentials/123", + "issuer": { + "id": "did:web:issuer.example.com" }, - "issuedTo": { - "identifiers": [ + "validFrom": "2022-04-01T00:00:00Z", + "validUntil": "2027-04-01T00:00:00Z", + "evidence": { + "type": ["ConformityAttestationEvidence"], + "evidenceRootHash": "string", + "description": "string", + "evidenceData": [ { - "scheme": "http://example.com", - "identiferValue": "string", - "identifierURI": "http://example.com", - "verificationEvidence": { - "format": "w3c_vc", - "credentialReference": "http://example.com" - } + "fileHash": "string", + "fileLocation": "http://example.com", + "fileType": "string", + "EncryptionMethod": "none" } ], - "name": "string" + "decryptionKeyRequest": "http://example.com" }, - "validFrom": "2019-08-24", - "validTo": "2019-08-24", - "status": "string", - "assessments": [ - { - "referenceStandard": { + "credentialSubject": { + "type": ["Organization"], + "id": "did:web:producer.example.com", + "hasAttestation": { + "id": "http://example.com", + "assessorLevel": "Self", + "assessmentLevel": "GovtApproval", + "type": "certification", + "description": "string", + "scope": { "id": "http://example.com", "name": "string", - "issuingBody": { - "identifiers": [ - { - "scheme": "http://example.com", - "identiferValue": "string", - "identifierURI": "http://example.com", - "verificationEvidence": { - "format": "w3c_vc", - "credentialReference": "http://example.com" - } - } - ], - "name": "string" + "trustmark": { + "fileHash": "string", + "fileLocation": "http://example.com", + "fileType": "string", + "EncryptionMethod": "none" }, - "issueDate": "2019-08-24" - }, - "referenceRegulation": { - "id": "http://example.com", - "name": "string", "issuingBody": { "identifiers": [ { @@ -476,58 +434,157 @@ https://vocabulary.uncefact.org/UnitMeasureCode ], "name": "string" }, - "effectiveDate": "2019-08-24" + "dateOfIssue": "2019-08-24" }, - "assessmentCriterion": { - "id": "http://example.com", - "threshold": [ - { + "assessments": [ + { + "referenceStandard": { + "id": "http://example.com", "name": "string", - "value": { - "value": 0, - "unit": "string" + "issuingBody": { + "identifiers": [ + { + "scheme": "http://example.com", + "identiferValue": "string", + "identifierURI": "http://example.com", + "verificationEvidence": { + "format": "w3c_vc", + "credentialReference": "http://example.com" + } + } + ], + "name": "string" }, - "minimumValue": { - "value": 0, - "unit": "string" + "issueDate": "2019-08-24" + }, + "referenceRegulation": { + "id": "http://example.com", + "name": "string", + "issuingBody": { + "identifiers": [ + { + "scheme": "http://example.com", + "identiferValue": "string", + "identifierURI": "http://example.com", + "verificationEvidence": { + "format": "w3c_vc", + "credentialReference": "http://example.com" + } + } + ], + "name": "string" }, - "maximumValue": { - "value": 0, - "unit": "string" + "effectiveDate": "2019-08-24" + }, + "assessmentCriterion": { + "id": "http://example.com", + "threshold": [ + { + "name": "string", + "value": { + "value": 0, + "unit": "string" + }, + "minimumValue": { + "value": 0, + "unit": "string" + }, + "maximumValue": { + "value": 0, + "unit": "string" + } + } + ], + "name": "string" + }, + "attestedProducts": [ + { + "identifiers": [ + { + "scheme": "http://example.com", + "identiferValue": "string", + "identifierURI": "http://example.com", + "verificationEvidence": { + "format": "w3c_vc", + "credentialReference": "http://example.com" + } + } + ], + "marking": "string", + "name": "string", + "classifications": [ + { + "scheme": "http://example.com", + "classifierValue": "string", + "classifierName": "string", + "classifierURL": "http://example.com" + } + ], + "testedBatchId": "http://example.com", + "verfifiedByCAB": true } - } - ], - "name": "string" - }, - "subjectProducts": [ - { - "identifiers": [ + ], + "attestedLocations": [ { - "scheme": "http://example.com", - "identiferValue": "string", - "identifierURI": "http://example.com", - "verificationEvidence": { - "format": "w3c_vc", - "credentialReference": "http://example.com" - } + "type": [], + "identifiers": [ + { + "scheme": "http://example.com", + "identiferValue": "string", + "identifierURI": "http://example.com", + "verificationEvidence": { + "format": "w3c_vc", + "credentialReference": "http://example.com" + } + } + ], + "name": "string", + "classifications": [ + { + "scheme": "http://example.com", + "classifierValue": "string", + "classifierName": "string", + "classifierURL": "http://example.com" + } + ], + "geolocation": "http://example.com", + "verfifiedByCAB": true } ], - "marking": "string", - "name": "string", - "classifications": [ + "measuredResults": [ { - "scheme": "http://example.com", - "classifierValue": "string", - "classifierName": "string", - "classifierURL": "http://example.com" + "name": "string", + "value": { + "value": 0, + "unit": "string" + }, + "minimumValue": { + "value": 0, + "unit": "string" + }, + "maximumValue": { + "value": 0, + "unit": "string" + } } ], - "testedBatchId": "http://example.com", - "verfifiedByCAB": true + "compliance": true, + "sustainabilityTopic": "environment.energy" } ], - "subjectFacilities": [ - { + "accreditation": { + "number": "string", + "authorityEvidence": { + "format": "w3c_vc", + "credentialReference": "http://example.com" + }, + "trustmark": { + "fileHash": "string", + "fileLocation": "http://example.com", + "fileType": "string", + "EncryptionMethod": "none" + }, + "authority": { "identifiers": [ { "scheme": "http://example.com", @@ -539,112 +596,43 @@ https://vocabulary.uncefact.org/UnitMeasureCode } } ], - "name": "string", - "classifications": [ + "name": "string" + } + }, + "regulatoryApproval": { + "number": "string", + "authorityEvidence": { + "format": "w3c_vc", + "credentialReference": "http://example.com" + }, + "trustmark": { + "fileHash": "string", + "fileLocation": "http://example.com", + "fileType": "string", + "EncryptionMethod": "none" + }, + "authority": { + "identifiers": [ { "scheme": "http://example.com", - "classifierValue": "string", - "classifierName": "string", - "classifierURL": "http://example.com" + "identiferValue": "string", + "identifierURI": "http://example.com", + "verificationEvidence": { + "format": "w3c_vc", + "credentialReference": "http://example.com" + } } ], - "geolocation": "http://example.com", - "verfifiedByCAB": true - } - ], - "measuredResults": [ - { - "name": "string", - "value": { - "value": 0, - "unit": "string" - }, - "minimumValue": { - "value": 0, - "unit": "string" - }, - "maximumValue": { - "value": 0, - "unit": "string" - } + "name": "string" } - ], - "compliance": true, - "sustainabilityTopic": "environment.energy" - } - ], - "evidence": { - "evidenceRootHash": "string", - "description": "string", - "evidenceData": [ - { + }, + "certificate": { "fileHash": "string", "fileLocation": "http://example.com", "fileType": "string", "EncryptionMethod": "none" } - ], - "decryptionKeyRequest": "http://example.com" - }, - "accreditation": { - "number": "string", - "authorityEvidence": { - "format": "w3c_vc", - "credentialReference": "http://example.com" - }, - "trustmark": { - "fileHash": "string", - "fileLocation": "http://example.com", - "fileType": "string", - "EncryptionMethod": "none" - }, - "authority": { - "identifiers": [ - { - "scheme": "http://example.com", - "identiferValue": "string", - "identifierURI": "http://example.com", - "verificationEvidence": { - "format": "w3c_vc", - "credentialReference": "http://example.com" - } - } - ], - "name": "string" } - }, - "regulatoryApproval": { - "number": "string", - "authorityEvidence": { - "format": "w3c_vc", - "credentialReference": "http://example.com" - }, - "trustmark": { - "fileHash": "string", - "fileLocation": "http://example.com", - "fileType": "string", - "EncryptionMethod": "none" - }, - "authority": { - "identifiers": [ - { - "scheme": "http://example.com", - "identiferValue": "string", - "identifierURI": "http://example.com", - "verificationEvidence": { - "format": "w3c_vc", - "credentialReference": "http://example.com" - } - } - ], - "name": "string" - } - }, - "certificate": { - "fileHash": "string", - "fileLocation": "http://example.com", - "fileType": "string", - "EncryptionMethod": "none" } } ```