diff --git a/contexts/credentials/v2 b/contexts/credentials/v2 index feec22ebd..2e2606590 100644 --- a/contexts/credentials/v2 +++ b/contexts/credentials/v2 @@ -77,6 +77,9 @@ "description": "https://schema.org/description", "name": "https://schema.org/name", + "EnvelopedVerifiableCredential": + "https://www.w3.org/2018/credentials#EnvelopedVerifiableCredential", + "VerifiableCredential": { "@id": "https://www.w3.org/2018/credentials#VerifiableCredential", "@context": { diff --git a/index.html b/index.html index e61eda0a1..4e8477eac 100644 --- a/index.html +++ b/index.html @@ -2324,6 +2324,52 @@

Presentations

[[?VC-JOSE-COSE]] specification.

+
+

Enveloped Verifiable Credentials

+ +

+It is possible for a verifiable presentation to include one or more +verifiable credentials that have been secured using a securing mechanism +that "envelopes" the payload, such as [[[?VC-JOSE-COSE]]] [[?VC-JOSE-COSE]]. +This can be accomplished by associating the `verifiableCredential` property with +an object that has a `type` of `EnvelopedVerifiableCredential`. +

+ +
+
EnvelopedVerifiableCredential
+
+Used to associate an object containing an enveloped verifiable credential +with the `verifiableCredential` property in a verifiable presentation. +The `@context` value of the object MUST follow all of the "MUST" statements in +Section . The `id` value of the object MUST be a `data:` +URL [[RFC2397]] that expresses a secured verifiable credential using an enveloping +security scheme, such as [[[VC-JOSE-COSE]]] [[VC-JOSE-COSE]]. The `type` value +of the object MUST be `EnvelopedVerifiableCredential`. +
+
+ +

+The example below shows a verifiable presentation that contains an +enveloped verifiable credential: +

+ +
+{
+  "@context": [
+    "https://www.w3.org/ns/credentials/v2",
+    "https://www.w3.org/ns/credentials/examples/v2"
+  ],
+  "type": ["VerifiablePresentation", "ExamplePresentation"],
+  "verifiableCredential": [{
+    "@context": "https://www.w3.org/ns/credentials/v2",
+    "id": "data:application/vc+ld+json+sd-jwt;QzVjV...RMjU",
+    "type": "EnvelopedVerifiableCredential"
+  }]
+}
+        
+ +
+

Presentations Using Derived Credentials

diff --git a/vocab/credentials/v2/vocabulary.yml b/vocab/credentials/v2/vocabulary.yml index c6482f919..04c580c09 100644 --- a/vocab/credentials/v2/vocabulary.yml +++ b/vocab/credentials/v2/vocabulary.yml @@ -35,6 +35,10 @@ class: defined_by: https://www.w3.org/TR/vc-data-model-2.0/#bc-confidence-method status: reserved + - id: EnvelopedVerifiableCredential + defined_by: https://www.w3.org/TR/vc-data-model-2.0/#defn-EnvelopedVerifiableCredential + label: Enveloped verifiable credential + - id: JsonSchema label: JSON schema validator defined_by: https://www.w3.org/TR/vc-json-schema/#jsonschema @@ -102,10 +106,10 @@ property: label: Subresource integrity digest defined_by: https://www.w3.org/TR/vc-data-model-2.0/#defn-digestSRI range: cred:sriString - see_also: + see_also: - label: Subresource Integrity Metadata url: https://www.w3.org/TR/SRI/#the-integrity-attribute - + - id: evidence label: Evidence defined_by: https://www.w3.org/TR/vc-data-model-2.0/#defn-evidence @@ -195,7 +199,7 @@ datatype: label: Datatype for digest SRI values upper_value: xsd:string defined_by: https://www.w3.org/TR/vc-data-model-2.0/#the-sristring-datatype - see_also: + see_also: - label: Subresource Integrity Metadata url: https://www.w3.org/TR/SRI/#the-integrity-attribute - +