メインコンテンツまでスキップ

Content Attestation of Document

用語​

本文書に説明のない用語については、用語を参照してください。

  • Content Attestation (CA)

Document のデータモデル​

Content Attestation に従います。

プロパティ​

Document のプロパティ一覧​

NameTypeDescription
@contextstring[]REQUIRED. OP VC Data Model に従ってください (MUST)。さらに、3つ目の値を "https://originator-profile.org/ns/cip/v1" にしなければなりません (MUST)。
typestring[]REQUIRED. 必ず ["VerifiableCredential", "ContentAttestation"] にしてください (MUST)。
issuerstringREQUIRED. CA 発行者の OP ID でなければなりません (MUST)。
credentialSubjectobjectREQUIRED. 次の credentialSubject のプロパティを含む JSON-LD Node Object です。
allowedUrlstring | string[]REQUIRED. Content Attestation に定義済みのプロパティです。空配列にしてはなりません (MUST NOT)。
targetobject[]REQUIRED. Content Attestation に定義済みのプロパティです。空配列にしてはなりません (MUST NOT)。

credentialSubject のプロパティ一覧​

NameTypeDescription
idstringREQUIRED. CA ID でなければなりません (MUST)。 CA ID は UUIDv4 の URN 形式の文字列です。コンテンツと CA ID は一対一対応します。
typestringREQUIRED. Document でなければなりません (MUST)。
namestringREQUIRED. ドキュメントのタイトルです。
descriptionstringREQUIRED. ドキュメントの説明です。
imageobjectOPTIONAL. ドキュメントのサムネイル画像です。サムネイル画像がある場合指定するべきです (RECOMMENDED)。 image データ型 の JSON-LD Node Object でなければなりません (MUST)。このプロパティで CA を検証することができます。
dateCreatedstringOPTIONAL. 作成日時です。dateTimeStamp データ型 でなければなりません (MUST)。
dateModifiedstringOPTIONAL. 最終更新日時です。dateTimeStamp データ型 でなければなりません (MUST)。
creatorstring[]OPTIONAL. 作成者の配列です。
encodingFormatstringOPTIONAL. コンテンツの符号化形式です。MIME タイプでなければなりません (MUST)。
genrestringOPTIONAL. ジャンルです。

Appendix​

例​

このセクションは非規範的です。

ドキュメントの具体例を次に示します。

{
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://originator-profile.org/ns/credentials/v1",
"https://originator-profile.org/ns/cip/v1",
{ "@language": "ja" }
],
"type": ["VerifiableCredential", "ContentAttestation"],
"issuer": "dns:example.com",
"credentialSubject": {
"id": "urn:uuid:78550fa7-f846-4e0f-ad5c-8d34461cb95b",
"type": "Document",
"name": "<ドキュメントのタイトル>",
"image": {
"id": "https://media.example.com/image.png",
"digestSRI": "sha256-WNn1owxcJX6uwrNFOhPX+npz4j46s3a1cExjX5wWVxw="
},
"description": "<ドキュメントの説明>",
"dateCreated": "2023-07-04T19:14:00Z",
"dateModified": "2023-07-04T19:14:00Z",
"creator": ["山田花子"],
"encodingFormat": "application/pdf",
"genre": "Arts & Entertainment"
},
"allowedUrl": ["https://media.example.com/*"],
"target": [
{
"type": "ExternalResourceTargetIntegrity",
"integrity": "sha256-+M3dMZXeSIwAP8BsIAwxn5ofFWUtaoSoDfB+/J8uXMo="
}
]
}
注記

外部リンクのリソースは External Resource Integrity の対象外です。外部リンクのリソースの完全性を保証する仕組みは 外部リンクの Content Integrity Descriptor 仕様策定 · Issue #127 · originator-profile/docs.originator-profile.org にて検討中です。