Content Attestation of Document
Terminology
For terms not explained in this document, please see Terminology.
- Content Attestation (CA)
Document Data Model
Complies with Content Attestation.
Property
Document Properties
| Name | Type | Description |
|---|---|---|
@context | string[] | REQUIRED. You MUST follow the OP VC Data Model. Furthermore, the third value MUST be "https://originator-profile.org/ns/cip/v1". |
type | string[] | REQUIRED. It MUST be set to ["VerifiableCredential", "ContentAttestation"]. |
issuer | string | REQUIRED. It MUST be the OP ID of the CA issuer. |
credentialSubject | object | REQUIRED. A JSON-LD Node Object containing the following credentialSubject properties. |
allowedUrl | string | string[] | REQUIRED. It is a property defined for Content Attestation. It MUST NOT be an empty array. |
target | object[] | REQUIRED. It is a property defined for Content Attestation. It MUST NOT be an empty array. |
credentialSubject Properties
| Name | Type | Description |
|---|---|---|
id | string | REQUIRED. It MUST be a CA ID. A CA ID is a string in URN format representing a UUIDv4. There is a one-to-one correspondence between content and a CA ID. |
type | string | REQUIRED. It MUST be a Document. |
name | string | REQUIRED. This is the document title. |
description | string | REQUIRED. This is a description of the document. |
image | object | OPTIONAL. This is a thumbnail image for the document. It should be provided if available (RECOMMENDED). It MUST be a JSON-LD Node Object of the image data type. This property allows you to verify the CA. |
dateCreated | string | OPTIONAL. This is the creation timestamp. It MUST be of the dateTimeStamp data type. |
dateModified | string | OPTIONAL. This is the last-updated timestamp. It MUST be of the dateTimeStamp data type. |
creator | string[] | OPTIONAL. This is an array of creators. |
encodingFormat | string | OPTIONAL. This is the content encoding format. It MUST be a MIME type. |
genre | string | OPTIONAL. It is a genre. |
Appendix
Example
This section is non-normative.
The following is a concrete example from the document.
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://originator-profile.org/ns/credentials/v1",
"https://originator-profile.org/ns/cip/v1",
{ "@language": "en" }
],
"type": ["VerifiableCredential", "ContentAttestation"],
"issuer": "dns:example.com",
"credentialSubject": {
"id": "urn:uuid:78550fa7-f846-4e0f-ad5c-8d34461cb95b",
"type": "Document",
"name": "<Document Title>",
"image": {
"id": "https://media.example.com/image.png",
"digestSRI": "sha256-WNn1owxcJX6uwrNFOhPX+npz4j46s3a1cExjX5wWVxw="
},
"description": "<Document Description>",
"dateCreated": "2023-07-04T19:14:00Z",
"dateModified": "2023-07-04T19:14:00Z",
"creator": ["Jane Smith"],
"encodingFormat": "application/pdf",
"genre": "Arts & Entertainment"
},
"allowedUrl": ["https://media.example.com/*"],
"target": [
{
"type": "ExternalResourceTargetIntegrity",
"integrity": "sha256-+M3dMZXeSIwAP8BsIAwxn5ofFWUtaoSoDfB+/J8uXMo="
}
]
}
note
Resources from external links are outside the scope of External Resource Integrity. Mechanisms for ensuring the integrity of such external resources are currently under discussion in Development of Content Integrity Descriptor specifications for external links · Issue #127 · originator-profile/docs.originator-profile.org.