Copyright © 2023 World Wide Web Consortium. W3C® liability, trademark and permissive document license rules apply.
This specification defines how to secure credentials and presentations conforming to the [VC-DATA-MODEL], with JSON Object Signing and Encryption (JOSE), and CBOR Object Signing and Encryption (COSE) [RFC9052]. This enables the Verifiable Credential data model [VC-DATA-MODEL]to be implemented with standards for signing and encryption that are widely adopted.
This section describes the status of this document at the time of its publication. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at https://www.w3.org/TR/.
This document was published by the Verifiable Credentials Working Group as a Working Draft using the Recommendation track.
Publication as a Working Draft does not imply endorsement by W3C and its Members.
This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress.
This document was produced by a group operating under the W3C Patent Policy. W3C maintains a public list of any patent disclosures made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) must disclose the information in accordance with section 6 of the W3C Patent Policy.
This document is governed by the 12 June 2023 W3C Process Document.
This specification describes how to secure media types expressing Verifiable Credentials and Verifiable Presentations as described in the [VC-DATA-MODEL], using approaches described by the OAuth, JOSE, and COSE working groups at IETF. This includes SD-JWT [SD-JWT] and COSE [RFC9052], and provides an approach using well-defined content types [RFC6838] and structured suffixes [MULTIPLE-SUFFIXES] to distinguish the data types of unsecured documents conforming to [VC-DATA-MODEL] from the data types of secured documents conforming to [VC-DATA-MODEL], defined in this specification.
Selective Disclosure for JWTs (SD-JWT) [SD-JWT] provides a standardized mechanism for digitally signing JSON documents. It provides a means to ensure the integrity, authenticity, selective disclosure and non-repudiation of the information contained in a JSON document. These properties make SD-JWT especially well suited to securing documents conforming to the JSON-LD [VC-DATA-MODEL].
The working group is discussing how we might comment on recent work, that does make use of encryption in OpenID for Verifiable Presentations.
CBOR Object Signing and Encryption (COSE) [RFC9052] is a specification that defines a framework for representing signed and encrypted data using (Concise Binary Object Representation) [RFC8949] data structures. COSE provides a standardized way to secure the integrity, authenticity, and confidentiality of CBOR-encoded information. It offers a flexible and extensible set of cryptographic options, allowing for a wide range of algorithms to be used for signing and encryption. COSE supports two main operations: signing and encryption. For signing, COSE allows the creation of digital signatures over CBOR data using various algorithms such as HMAC, RSA, ECDSA, or EdDSA. These signatures provide assurance of data integrity and authenticity. COSE also supports encryption, enabling the confidentiality of CBOR data by encrypting it with symmetric or asymmetric encryption algorithms.
This section outlines how to secure documents conforming to the [VC-DATA-MODEL] using JOSE and COSE.
Documents conforming to the [VC-DATA-MODEL], and their associated media types, rely on JSON-LD, which is a flexible and extensible format for describing linked data, see JSON-LD Relationship to RDF.
A benefit to this approach is that payloads can be made to conform directly to the [VC-DATA-MODEL] without any mappings or transformation, while at the same time supporting registered claims that are understood in the context of JOSE and COSE.
It is RECOMMENDED that media types be used to distinguish verifiable credentials and verifiable presentations from other kinds of secured JSON or CBOR.
The most specific media type (or subtype) available SHOULD be used, instead of
more generic media types (or supertypes). For example, rather than the general
application/sd-jwt
, application/vc+ld+json+sd-jwt
ought to be used, unless there is a more specific media type that would even
better identify the secured envelope format.
If implementations do not know which media type to use, media types defined in this specification MUST be used.
This section details how to use JOSE to secure verifiable credentials conforming to the [VC-DATA-MODEL].
[rfc7515] MAY be used to secure this media type.
The typ
parameter SHOULD be vc+ld+json+sd-jwt
When present, the cty
SHOULD be
vc+ld+json
See Common JOSE Header
Parameters
for additional details regarding usage of typ
and
cty
.
{
"@context": ["https://www.w3.org/ns/credentials/v2",
"https://www.w3.org/ns/credentials/examples/v2"
],
"id": "http://example.edu/credentials/3732",
"type": ["VerifiableCredential",
"UniversityDegreeCredential"
],
"issuer": "https://example.edu/issuers/14",
"issuanceDate": "2010-01-01T19:23:24Z",
"credentialSubject": {
"id": "did:example:123",
"degree": {
"type": "BachelorDegree",
"name": "Bachelor of Science and Arts"
}
}
}
graph LR
0("VerifiableCredential")
1{{"id"}}
2("http://example.edu/credentials/3732")
3(("type"))
4("UniversityDegreeCredential")
5("issuer")
6("https://example.edu/issuers/14")
7("issuanceDate")
8("2010-01-01T19:23:24Z")
9("credentialSubject")
10{{"id"}}
11("did:example:123")
12("degree")
13(("type"))
14("BachelorDegree")
15("name")
16("Bachelor of Science and Arts")
0 --- 1
1 --- 2
0 --- 3
3 --- 4
0 --- 5
5 --- 6
0 --- 7
7 --- 8
0 --- 9
9 --- 10
10 --- 11
9 --- 12
12 --- 13
13 --- 14
12 --- 15
15 --- 16
---------------- Issuer Claims ---------------- "@context": - https://www.w3.org/ns/credentials/v2 - https://www.w3.org/ns/credentials/examples/v2 !sd id: http://example.edu/credentials/3732 !sd type: - VerifiableCredential - UniversityDegreeCredential issuer: https://example.edu/issuers/14 issuanceDate: 2010-01-01T19:23:24Z credentialSubject: !sd id: did:example:123 degree: !sd type: BachelorDegree name: Bachelor of Science and Arts ---------------- Holder Disclosure ---------------- issuer: id: True credentialStatus: id: True credentialSubject: id: True type: False ---------------- Decoded Protected Header ---------------- { "alg": "ES384" } ---------------- Decoded Protected Claimset ---------------- { "@context": [ "https://www.w3.org/ns/credentials/v2", "https://www.w3.org/ns/credentials/examples/v2" ], "issuer": "https://example.edu/issuers/14", "issuanceDate": "2010-01-01T19:23:24Z", "credentialSubject": { "degree": { "name": "Bachelor of Science and Arts" }, "id": "did:example:123" }, "iss": "did:web:issuer.example", "iat": 1694712163, "exp": 1726334563, "cnf": { "jwk": { "kty": "EC", "crv": "P-384", "alg": "ES384", "x": "vXo6PwSR-OCKfkXOlqiJlouhzb2v_zIUCq-XekVLBu0q_2ll2Ti6kM17UwWw7uVF", "y": "eF9I2YJe6NRAAmC2kxLcXMB6F8Td5wDjKmp7-GCR5DaMfUhlppfGOkPCMe8KVmWD" } } } ---------------- Compact Encoded Selective Disclosure JSON Web Token ---------------- eyJhbGciOiJFUzM4NCJ9.eyJAY29udGV4dCI6WyJodHRwczovL3d3dy53My5vcmcvbnMvY3JlZGVudGlhbHMvdjIiLCJodHRwczovL3d3dy53My5vcmcvbnMvY3JlZGVudGlhbHMvZXhhbXBsZXMvdjIiXSwiaXNzdWVyIjoiaHR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5cCI6ImtiK2p3dCJ9.eyJub25jZSI6Ii14YmNrbFo2Tkh5aXVnU2ZlcERDRFEiLCJhdWQiOiJkaWQ6d2ViOnZlcmlmaWVyLmV4YW1wbGUiLCJpYXQiOjE2OTQ3MTIxNjN9.g0fGglf_fxSVSQYRV8MX3GP3kPHJLl4MYZ4VyVGHx-sfWwbuYRB_VuOE8pzCFlwP3ETjvq1zeuXLOk3FvFmNnQpFB9tp-JMpFP5jo2j58-Xc0sd4Fo1hjjlA7PIccyTt
This section details how to use JOSE to secure verifiable presentations conforming to the [VC-DATA-MODEL].
[rfc7515] MAY be used to secure this media type.
The typ
parameter SHOULD be
vp+ld+json+sd-jwt
When present, the cty
parameter SHOULD be
vp+ld+json
See Common JOSE Header
Parameters
for additional details regarding usage of typ
and
cty
.
{
"@context": ["https://www.w3.org/ns/credentials/v2"],
"type": ["VerifiablePresentation"]
}
graph LR
69("VerifiablePresentation")
+sd-jwt does not support algorithm none.
{
"@context": ["https://www.w3.org/ns/credentials/v2"],
"type": ["VerifiablePresentation"]
}
graph LR
70("VerifiablePresentation")
---------------- Issuer Claims ---------------- "@context": - https://www.w3.org/ns/credentials/v2 !sd type: - VerifiablePresentation ---------------- Holder Disclosure ---------------- id: True type: True holder: id: True ---------------- Decoded Protected Header ---------------- { "alg": "ES384" } ---------------- Decoded Protected Claimset ---------------- { "@context": [ "https://www.w3.org/ns/credentials/v2" ], "iss": "did:web:issuer.example", "iat": 1694712163, "exp": 1726334563, "cnf": { "jwk": { "kty": "EC", "crv": "P-384", "alg": "ES384", "x": "t-zdq59qy1WNl51L2GVzpAEvpZlf09MzSNl3Rqs6mgGxsFN0eSTVGLwDH6TsZr0M", "y": "4gkR2bYYM3ItElNG04FHwBLFOO6xCZ-jjpDoloDgmyIVpElhI3fVtZogg4FerXGa" } }, "type": [ "VerifiablePresentation" ] } ---------------- Compact Encoded Selective Disclosure JSON Web Token ---------------- eyJhbGciOiJFUzM4NCJ9.eyJAY29udGV4dCI6WyJodHRwczovL3d3dy53My5vcmcvbnMvY3JlZGVudGlhbHMvdjIiXSwiX3NkIjpbImJZbDA5YXBGLUpJQjcwQjFXN3RReXg5c0toWTRnZkhYZTBPaGpGcjJWNkkiXSwiX3NkX2FsZyI6InNoYS0yNTYiLCJpc3MiOiJkaWQ6d2ViOmlzc3Vlci5leGFtcGxlIiwiaWF0IjoxNjk0NzEyMTYzLCJleHAiOjE3MjYzMzQ1NjMsImNuZiI6eyJqd2siOnsia3R5IjoiRUMiLCJjcnYiOiJQLTM4NCIsImFsZyI6IkVTMzg0IiwieCI6InQtemRxNTlxeTFXTmw1MUwyR1Z6cEFFdnBabGYwOU16U05sM1JxczZtZ0d4c0ZOMGVTVFZHTHdESDZUc1pyME0iLCJ5IjoiNGdrUjJiWVlNM0l0RWxORzA0Rkh3QkxGT082eENaLWpqcERvbG9EZ215SVZwRWxoSTNmVnRab2dnNEZlclhHYSJ9fX0.UPLoQbF7XeGqHHm-k2Ny4PBkE5-UpP5Ogia4q7C3T48kReyoDbv1qEVDOQkDNcUB0e0XqxQP9CJeGHpfbgeeG9Gmm9yXPU1w4zbiAZ5a8CU4DbGKnJia969Rcq6cdxkV~WyJQdC00c25kdWxocjRDaWhLb2dmT3RRIiwgInR5cGUiLCBbIlZlcmlmaWFibGVQcmVzZW50YXRpb24iXV0~eyJhbGciOiJFUzM4NCIsInR5cCI6ImtiK2p3dCJ9.eyJub25jZSI6IlBFcTNQMWVJWnJGWTBZckRfcVVMREEiLCJhdWQiOiJkaWQ6d2ViOnZlcmlmaWVyLmV4YW1wbGUiLCJpYXQiOjE2OTQ3MTIxNjN9.hSzue_RyHrzPrI44mP6dFSWKUTqq8l3dVbuFZNVvaxo1r8R_N9mzgCJF9t-zXsJPagA7bdS9zJBcOy1u6L2HSzzctTlLj8JmWJWin4ZfRa5X4sI5xv2BsfbrG-WndA6n
{
"@context": ["https://www.w3.org/ns/credentials/v2",
"https://www.w3.org/ns/credentials/examples/v2"
],
"type": ["VerifiablePresentation"],
"holder": "urn:ietf:params:oauth:jwk-thumbprint:sha-256:NzbLsXh8uDCcd-6MNwXF4W_7noWXFZAfHkxZsRGC9Xs"
}
graph LR
71("VerifiablePresentation")
72("holder")
73("urn:ietf:params:oauth:jwk-thumbprint:sha-256:NzbLsXh8uDCcd-6MNwXF4W_7noWXFZAfHkxZsRGC9Xs")
71 --- 72
72 --- 73
---------------- Issuer Claims ---------------- "@context": - https://www.w3.org/ns/credentials/v2 - https://www.w3.org/ns/credentials/examples/v2 !sd type: - VerifiablePresentation holder: urn:ietf:params:oauth:jwk-thumbprint:sha-256:NzbLsXh8uDCcd-6MNwXF4W_7noWXFZAfHkxZsRGC9Xs ---------------- Holder Disclosure ---------------- id: True type: True holder: id: True ---------------- Decoded Protected Header ---------------- { "alg": "ES384" } ---------------- Decoded Protected Claimset ---------------- { "@context": [ "https://www.w3.org/ns/credentials/v2", "https://www.w3.org/ns/credentials/examples/v2" ], "holder": "urn:ietf:params:oauth:jwk-thumbprint:sha-256:NzbLsXh8uDCcd-6MNwXF4W_7noWXFZAfHkxZsRGC9Xs", "iss": "did:web:issuer.example", "iat": 1694712163, "exp": 1726334563, "cnf": { "jwk": { "kty": "EC", "crv": "P-384", "alg": "ES384", "x": "BbdQcJf_sdK_LBT073V-DkOOQ2_d4kGDbnN1UXek6Za_EZfjf_CPXQlkSqvHiH87", "y": "UrUhQpZCY9oGUZs1VrFVrf3JVeRqFhBL-MzqyIoWu3GAm3zC4QZPEJ3efczb68lG" } }, "type": [ "VerifiablePresentation" ] } ---------------- Compact Encoded Selective Disclosure JSON Web Token ---------------- eyJhbGciOiJFUzM4NCJ9.eyJAY29udGV4dCI6WyJodHRwczovL3d3dy53My5vcmcvbnMvY3JlZGVudGlhbHMvdjIiLCJodHRwczovL3d3dy53My5vcmcvbnMvY3JlZGVudGlhbHMvZXhhbXBsZXMvdjIiXSwiaG9sZGVyIjoidXJuOmlldGY6cGFyYW1zOm9hdXRoOmp3ay10aHVtYnByaW50OnNoYS0yNTY6TnpiTHNYaDh1RENjZC02TU53WEY0V183bm9XWEZaQWZIa3hac1JHQzlYcyIsIl9zZCI6WyJiWTZhT1BMN0FzeU9COXpSNjhIRGx2djAwUW9TbDVwMHRYaEhmX1ZwRDl3Il0sIl9zZF9hbGciOiJzaGEtMjU2IiwiaXNzIjoiZGlkOndlYjppc3N1ZXIuZXhhbXBsZSIsImlhdCI6MTY5NDcxMjE2MywiZXhwIjoxNzI2MzM0NTYzLCJjbmYiOnsiandrIjp7Imt0eSI6IkVDIiwiY3J2IjoiUC0zODQiLCJhbGciOiJFUzM4NCIsIngiOiJCYmRRY0pmX3NkS19MQlQwNzNWLURrT09RMl9kNGtHRGJuTjFVWGVrNlphX0VaZmpmX0NQWFFsa1NxdkhpSDg3IiwieSI6IlVyVWhRcFpDWTlvR1VaczFWckZWcmYzSlZlUnFGaEJMLU16cXlJb1d1M0dBbTN6QzRRWlBFSjNlZmN6YjY4bEcifX19.TCKYVjgFGftKvBbutzQjUT5UFB7rw589rHYOsdrCDhADn7nP8qLXNF1D3udS87wHZxWRNonRp62Y4JcUCK_DN1yUO26i_8GVNKe-FIBBuB3OUnFhdNhiVMzU3pUxidlt~WyJ3ZUN1cmZGOFN2WmJhazQ3TWM1XzVRIiwgInR5cGUiLCBbIlZlcmlmaWFibGVQcmVzZW50YXRpb24iXV0~eyJhbGciOiJFUzM4NCIsInR5cCI6ImtiK2p3dCJ9.eyJub25jZSI6IlBYVU1ZOU85MUFWdW9qNHJsRG9hMWciLCJhdWQiOiJkaWQ6d2ViOnZlcmlmaWVyLmV4YW1wbGUiLCJpYXQiOjE2OTQ3MTIxNjN9.2YZENWTF6E71R-UgHbU0H1G-7T1W3PaGGCj8PruqqM68009tnwY0vf0rC40b7l5SWePYZCEeqRmMDnLDWIGkVy8O7KQnte0KZxnEs1uUrQMlmi36kXIK_P8EdcVi_toP
{
"@context": ["https://www.w3.org/ns/credentials/v2"],
"type": ["VerifiablePresentation"],
"holder": {
"id": "urn:ietf:params:oauth:jwk-thumbprint:sha-256:NzbLsXh8uDCcd-6MNwXF4W_7noWXFZAfHkxZsRGC9Xs",
"type": "Organization",
"name": "Contoso"
}
}
graph LR
74("VerifiablePresentation")
75("holder")
76{{"id"}}
77("urn:ietf:params:oauth:jwk-thumbprint:sha-256:NzbLsXh8uDCcd-6MNwXF4W_7noWXFZAfHkxZsRGC9Xs")
78(("type"))
79("Organization")
80("name")
81("Contoso")
74 --- 75
75 --- 76
76 --- 77
75 --- 78
78 --- 79
75 --- 80
80 --- 81
---------------- Issuer Claims ---------------- "@context": - https://www.w3.org/ns/credentials/v2 !sd type: - VerifiablePresentation holder: !sd id: urn:ietf:params:oauth:jwk-thumbprint:sha-256:NzbLsXh8uDCcd-6MNwXF4W_7noWXFZAfHkxZsRGC9Xs !sd type: Organization name: Contoso ---------------- Holder Disclosure ---------------- id: True type: True holder: id: True ---------------- Decoded Protected Header ---------------- { "alg": "ES384" } ---------------- Decoded Protected Claimset ---------------- { "@context": [ "https://www.w3.org/ns/credentials/v2" ], "holder": { "name": "Contoso", "id": "urn:ietf:params:oauth:jwk-thumbprint:sha-256:NzbLsXh8uDCcd-6MNwXF4W_7noWXFZAfHkxZsRGC9Xs" }, "iss": "did:web:issuer.example", "iat": 1694712163, "exp": 1726334563, "cnf": { "jwk": { "kty": "EC", "crv": "P-384", "alg": "ES384", "x": "m62uEzNTZ4Hz1uA1_Z4pk66lcazR8hF1wiZwBoqS6NL-pCiXrPc_lcKhhBzCaDor", "y": "pGuYkNLgqJGlLkMOoImz-8Tgfeuo93Qz7Izw_09HUepPhjM1NfpyVIgpFtaWp0IH" } }, "type": [ "VerifiablePresentation" ] } ---------------- Compact Encoded Selective Disclosure JSON Web Token ---------------- eyJhbGciOiJFUzM4NCJ9.eyJAY29udGV4dCI6WyJodHRwczovL3d3dy53My5vcmcvbnMvY3JlZGVudGlhbHMvdjIiXSwiaG9sZGVyIjp7Im5hbWUiOiJDb250b3NvIiwiX3NkIjpbIkdrMjQyMDhGRk5NRHJ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TQ3MTIxNjN9.U40S2QAiytdO4n51rSprlmbRV8aEWBqDMikZxzgM8cxWs3S90YzqkPE0EngZSsWda075Rpne3YzuKjDb_NHa8DP2KAp9qRtX0m6k9Mz067qdqv9o9CsH-GGHOlCWjLhc
COSE [rfc9052] is a common approach to encoding and securing information using CBOR [rfc8949]. Verifiable credentials MAY be secured using COSE [rfc9052] and SHOULD be identified through use of content types as outlined in this section.
This section details how to secure data with the type
application/vc+ld+json
with COSE.
[rfc9052] MAY be used to secure this media type.
When using this approach, the typ
SHOULD be
vc+ld+json+cose
.
See I-D.ietf-cose-typ-header-parameter
for the COSE "typ
" (type) header parameter.
When using this approach, the content type (3)
SHOULD be application/vc+ld+json
See Common COSE Header Parameters for additional details.
See Concise Binary Object Representation (CBOR) Tags for additional details.
This section is non-normative.
Issuers, holders and verifiers might rely on clients, as defined in RFC4949. Such clients are often referred to as wallets or digital credential wallets, when they support storing and presenting digital credentials.
In order to meet verifier requirements, some issuers might need to assess the quality of a wallet used by a holder, prior to issuing and delivering credentials to a holder.
For example, some verifiers might require that cryptographic material associated with a holder, be protected at specific assurance levels. (See NIST 800-63-3: Authenticator Assurance Levels.)
Also see OAuth 2.0 Attestation-Based Client Authentication .
The working group is still discussing how to close many related issues.
Originally posted by @TallTed in #111 (comment)
line 377 says (and another line says the same) --
If <code>kid</code> is also present, it is expected to be useful to distinguish the specific key used.
-- in response to which I ask --
how is
kid
to beuseful to distinguish the specific key used
? This cries out for an example, or a fair amount of additional prose.
Just read that section, and I have to say that it's not intuitive at all. I think it would be worth either: adding an example that refers to this controller document, pointing to the spec you mentioned, or explicitly stating the relationship between controller docs and `iss` & `kid`.
Originally posted by @andresuribe87 in #104 (comment)
https://www.w3.org/TR/vc-data-model/#jwt-encoding shows:
kid MAY be used if there are multiple keys associated with the issuer of the JWT. The key discovery is out of the scope of this specification. For example, the kid can refer to a key in a DID document, or can be the identifier of a key inside a JWKS.
I'd like some clarification on the optionality of the "kid" field. My guess is that VCs/VPs are trying to be generic regarding issuers/holders, allowing for URIs, which precludes the possibility of giving any more details about how the "kid" field should be used. Is that right?
I'm coming from a DID-centric ecosystem, and in that scenario it seems that there's no reason not to set the "kid" field on a JWT-formatted VC/VP to the DID fragment URL of the specific key used to sign. From w3c/vc-data-model#914 I understand that it would still be necessary to tie the "kid" to the "iss" field, but that seems fine.
As far as I can tell, if the "kid" field is missing, and assuming we're working with DIDs here, the process to resolve the signing key has to be:
To me, this seems sloppy, involving unnecessary complexity and computation, and making detecting errors in implementations harder. It also wouldn't scale if for whatever reason a DID had very many keys (inefficient at best, possible DoS at worst). Maybe I'm missing something here. Can anyone comment on this? Thanks.
See https://github.com/decentralized-identity/did-jose-extensions/blob/master/options.md
^ this guidance is ancient, I believe we can do better.
Can we add an explanation why do these members need to be translated to the equivalents of the JWT claims?
iss, nbf, all of them are optional in RFC 7519 itself. They only become required when the JWT is used for a specific purpose, and the only place I can think of right now is an ID Token.
See: #11 (comment)
Originally posted by @TallTed in #111 (comment)
line 377 says (and another line says the same) --
If <code>kid</code> is also present, it is expected to be useful to distinguish the specific key used.
-- in response to which I ask --
how is
kid
to beuseful to distinguish the specific key used
? This cries out for an example, or a fair amount of additional prose.
Originally posted by @TallTed in #111 (comment)
line 377 says (and another line says the same) --
If <code>kid</code> is also present, it is expected to be useful to distinguish the specific key used.
-- in response to which I ask --
how is
kid
to beuseful to distinguish the specific key used
? This cries out for an example, or a fair amount of additional prose.
In order to complete the verification process, a verifier needs to obtain the cryptographic keys used to secure the credential.
There are several different ways to discover the verification keys of the issuers and holders.
When found in the Protected Header, or the Protected Claimset, members present in IANA Assignments for JSON Web Token (JWT) and IANA Assignments for JSON Object Signing and Encryption (JOSE) are to be interpreted according to the associated specifications referenced by IANA.
Registered claims that are present in either the Protected Header or the Claimset can be used to help verifiers discover verification keys.
If kid
is present in the Protected Header,
a verifier can use this parameter
to obtain a JSON Web Key to use in the
verification process.
If iss
is present in the Protected Header
or the JWT Claims ,
a verifier can use this parameter
to obtain a JSON Web Key to use in the
verification process.
The value of the issuer property can be either a string or an object.
When issuer
value is a string, iss
value, if present, MUST match issuer
value.
When issuer
value is an object with an id
value,
iss
value, if present, MUST match issuer.id
value.
If kid
is also present in the
Protected Header, it is expected to be useful to
distinguish the specific key used.
If cnf
is present in the Protected Header
or the JWT Claims ,
a verifier can use this parameter
to obtain a JSON Web Key to use in the
verification process.
If kid
is also present in the
Protected Header, it is expected to be
useful to distinguish the specific key used.
The working group is currently exploring how Defining Well-Known Uniform Resource Identifiers (URIs) could be leveraged to assist a verifier in discovering verification keys for issuers and holders.
When the issuer value is a URL using the HTTPS scheme, issuer metadata including the issuer's public keys can be retrieved using the mechanism defined in SD-JWT-based Verifiable Credentials (SD-JWT VC).
The normative statements in Registered Header Parameter Names apply to securing credentials and presentations.
The normative statements in JOSE Header apply to securing credentials and presentations.
The data model for the protected header is JSON (application/json), not JSON-LD (application/ld+json).
The normative statements in Replicating Claims as Header Parameters apply to securing claims about a credential subject.
When replicating claims from the claimset to the header, it is
RECOMMENDED to use [RFC7519], IANA
Assignments for Header Parameters, and IANA
Assignments for JSON Web Token (JWT)
to identify any reserved claims that might be confused with
members of the [[VC-DATA-MODEL]. This includes but is not
limited to: iss
, kid
,
alg
, iat
,
exp
and cnf
.
When the iat
and/or exp
JWT claims are present,
they represent the issuance and expiration time of the signature, respectively.
Note that these are different from the validFrom
and validUntil
properties
defined in Validity Period
that represent the validity of the data that is being secured.
The registered claim names vc
and vp
MUST NOT be present as header parameters.
When present, members of the header are to be interpreted and processed according to IANA Assignments for JSON Web Token (JWT) and IANA Assignments for JSON Object Signing and Encryption (JOSE).
Additional members may be present, if they are not understood, they MUST be ignored.
As well as sections marked as non-normative, all authoring guidelines, diagrams, examples, and notes in this specification are non-normative. Everything else in this specification is normative.
The key words MAY, MUST, MUST NOT, RECOMMENDED, and SHOULD in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.
The Verifiable Credentials Data Model v1.1 describes the approach taken by JSON Web
Tokens to secure claimsets as applying an
external proof
.
The normative statements in Securing
Verifiable Credentials apply to securing
application/vc+ld+json
and
application/vp+ld+json
as application/vc+ld+json+sd-jwt
and
application/vp+ld+json+sd-jwt
.
For clarity, these requirements are repeated here:
At least one securing mechanism, and the details necessary to evaluate it, MUST be expressed for a credential or presentation to be a verifiable credential or verifiable presentation; that is, to be verifiable.
Methods of securing credentials or presentations that embed a proof in the data model MUST use the proof property.
Methods of securing credentials or presentations that use an external proof MAY use the proof property.
One or more cryptographic proofs that can be used to detect tampering and verify the authorship of a credential or presentation. The specific method used for an embedded proof MUST be included using the type property.
The type VerifiableCredential
and
VerifiablePresentation
are RDF Classes.
The presence of the word "Verifiable" does not convey a
cryptographic verification capability exists.
The presence of the JSON proof
member does not
convey a cryptographic verification capability exists.
The presence of the JSON proof
member is
optional in both VerifiableCredential
and
VerifiablePresentation
.
The presence of the JSON proof
member is
optional in both application/vc+ld+json
and
application/vp+ld+json
.
JSON Web Token implementers are advised to review Implementation Requirements.
Accordingly, Issuers, Holders and Verifiers MUST understand the
JSON Web Token header parameter
"alg": "none"
when securing the [VC-DATA-MODEL]
with JSON Web Tokens.
When content types from the [VC-DATA-MODEL] are secured using
JSON Web Tokens, the header parameter "alg":
"none"
, MUST be used to communicate that a claimset (a
Verifiable Credential or a Verifiable Presentation) has no
integrity protection.
When a JSON Web Token claimset (a Verifiable Credential or a
Verifiable Presentation) contains
proof
, and the JSON Web Token header contains
"alg": "none"
, the claimset MUST be considered to
have no integrity protection.
Verifiable Credentials and Verifiable Presenatations are not
required to be secured or integrity protected or to contain a
proof
member.
Issuers, Holders and Verifiers MUST ignore all claimsets that have no integrity protection.
This specification registers the
application/vc+ld+json+sd-jwt
Media Type specifically for
identifying a Selective Disclosure for JWTs (SD-JWT)
conforming to the Verifiable Credential Data Model.
Type name: | application |
Subtype name: | vc+ld+json+sd-jwt |
Required parameters: | None |
Encoding considerations: | binary; application/sd-jwt values are a series of base64url-encoded values (some of which may be the empty string) separated by period ('.') or tilde ('~') characters. |
Security considerations: |
As defined in this specification. See also the security considerations in Selective Disclosure for JWTs (SD-JWT). |
Contact: | W3C Verifiable Credentials Working Group public-vc-wg@w3.org |
This specification registers the
application/vp+ld+json+sd-jwt
Media Type specifically for
identifying a Selective Disclosure for JWTs (SD-JWT)
conforming to the Verifiable Presentations.
Type name: | application |
Subtype name: | vp+ld+json+sd-jwt |
Required parameters: | None |
Encoding considerations: | binary; application/sd-jwt values are a series of base64url-encoded values (some of which may be the empty string) separated by period ('.') or tilde ('~') characters. |
Security considerations: |
As defined in this specification. See also the security considerations in Selective Disclosure for JWTs (SD-JWT). |
Contact: | W3C Verifiable Credentials Working Group public-vc-wg@w3.org |
This section retains deprecated registered claim names that were previously submitted to the Internet Engineering Steering Group (IESG) for review, approval, and registration with IANA in the "JSON Web Token Claims Registry".
These are registered claims at:
As it says, the change controller is IESG, but it references v1.0 of the data model, specifically:
In v2, we removed these from the core data model, and we removed them from this specification.
Should we tell the IESG to update the registry in any way?
Claim Name: | "vc" |
---|---|
Claim Description: | Verifiable Credential |
Change Controller: | W3C |
Specification Document(s): | Section 6.3.1.2: JSON Web Token Extensions of Verifiable Credentials Data Model 1.0 |
Claim Name: | "vp" |
---|---|
Claim Description: | Verifiable Presentation |
Change Controller: | W3C |
Specification Document(s): | Section 6.3.1.2: JSON Web Token Extensions of Verifiable Credentials Data Model 1.0 |
Verifiable Credentials often contain sensitive information that needs to be protected to ensure the privacy and security of organizations and individuals. This section outlines some privacy considerations relevant to implementers and users.
Implementers are advised to note and abide by all privacy considerations called out in the [VC-DATA-MODEL].
Implementers are additionally advised to reference the Privacy Consideration section of the JWT specification for privacy guidance.
In addition to the privacy recommendations in the [VC-DATA-MODEL], the following considerations are given:
Minimization of data: It is considered best practice for Verifiable Credentials to only contain the minimum amount of data necessary to achieve their intended purpose. This helps to limit the amount of sensitive information that is shared or stored unnecessarily.
Informed consent: It is considered best practice that individuals be fully informed about how their data will be used and provide the ability to consent to or decline the use of their data. This helps to ensure that individuals maintain control over their own personal information.
Data protection: It is considered best practice to protect Verifiable Credentials using strong encryption and other security measures to prevent unauthorized access, modification, or disclosure.
These considerations are not exhaustive, and implementers and users are advised to consult additional privacy resources and best practices to ensure the privacy and security of Verifiable Credentials implemented using VC-JWT.
This section outlines security considerations for implementers and users of this specification. It is important to carefully consider these factors to ensure the security and integrity of Verifiable Credentials when implemented using JWTs.
When implementing VC-JWTs, it is essential to address all security issues relevant to broad cryptographic applications. This especially includes protecting the user's asymmetric private and symmetric secret keys, as well as employing countermeasures against various attacks. Failure to adequately address these issues could compromise the security and integrity of Verifiable Credentials, potentially leading to unauthorized access, modification, or disclosure of sensitive information.
Implementers are advised to follow best practices and established cryptographic standards to ensure the secure handling of keys and other sensitive data. Additionally, conduct regular security assessments and audits to identify and address any vulnerabilities or threats.
Follow all security considerations outlined in [rfc7515] and [rfc7519].
When utilizing JSON-LD, take special care around remote retrieval of contexts and follow the additional security considerations noted in [json-ld11].
As noted in [rfc7515] when utilizing JSON [rfc7159], strict validation is a security requirement. If malformed JSON is received, it may be impossible to reliably interpret the producer's intent, potentially leading to ambiguous or exploitable situations. To prevent these risks, it is essential to use a JSON parser that strictly validates the syntax of all input data. It is essential that any JSON inputs that do not conform to the JSON-text syntax defined in [rfc7159] be rejected in their entirety by JSON parsers. Failure to reject invalid input could compromise the security and integrity of Verifiable Credentials.
This section is non-normative.
When implementing this specification, it is crucial for technical implementers to consider various accessibility factors. Ignoring accessibility concerns renders the information unusable for a significant portion of the population. To ensure equal access for all individuals, regardless of their abilities, it is vital to adhere to accessibility guidelines and standards, such as the Web Content Accessibility Guidelines (WCAG 2.1) [WCAG21]. This becomes even more critical when establishing systems that involve cryptography, as they have historically posed challenges for assistive technologies.
Implementers are advised to note and abide by all accessibility considerations called out in the [VC-DATA-MODEL].
This section is non-normative.
Implementers should take into account several internationalization considerations when publishing data described in this specification. Disregarding internationalization hampers the production and consumption of data across diverse languages and societies, thereby restricting the applicability and significantly reducing the value of the specification as a standard.
Implementers are advised to note and abide by all internationalization considerations called out in the [VC-DATA-MODEL], see also i18n, URL Standard
This section is non-normative.
{
"@context": ["https://www.w3.org/ns/did/v1", {
"@vocab": "https://vendor.example#"
}],
"id": "did:web:vendor.example",
"alsoKnownAs": ["https://vendor.example",
"did:jwk:eyJraWQiOiJ1cm46aWV0ZjpwYXJhbXM6b2F1dGg6andrLXRodW1icHJpbnQ6c2hhLTI1NjpGZk1iek9qTW1RNGVmVDZrdndUSUpqZWxUcWpsMHhqRUlXUTJxb2JzUk1NIiwia3R5IjoiT0tQIiwiY3J2IjoiRWQyNTUxOSIsImFsZyI6IkVkRFNBIiwieCI6IkFOUmpIX3p4Y0tCeHNqUlBVdHpSYnA3RlNWTEtKWFE5QVBYOU1QMWo3azQifQ"
],
"verificationMethod": [{
"id": "#urn:ietf:params:oauth:jwk-thumbprint:sha-256:NzbLsXh8uDCcd-6MNwXF4W_7noWXFZAfHkxZsRGC9Xs",
"type": "JsonWebKey",
"controller": "did:web:vendor.example",
"publicKeyJwk": {
"kty": "EC",
"crv": "P-521",
"alg": "ES512",
"x": "AFTyMw-fIYJNg6fBVJvOPOsLxmnNj8HgqMChyRL0swLaefVAc7wrWZ8okQJqMmvv03JRUp277meQZM3JcvXFkH1v",
"y": "ALn96CrD88b4TClmkl1sk0xk2FgAIda97ZF8TUOjbeWSzbKnN2KB6pqlpbuJ2xIRXvsn5BWQVlAT2JGpGwDNMyV1"
}
}, {
"id": "#z6MkhEdpG12jyQegrr62ACRmNY8gc531W2j9Xo39cHphuCEH",
"type": "JsonWebKey2020",
"controller": "https://vendor.example",
"publicKeyJwk": {
"kid": "urn:ietf:params:oauth:jwk-thumbprint:sha-256:FfMbzOjMmQ4efT6kvwTIJjelTqjl0xjEIWQ2qobsRMM",
"kty": "OKP",
"crv": "Ed25519",
"alg": "EdDSA",
"x": "ANRjH_zxcKBxsjRPUtzRbp7FSVLKJXQ9APX9MP1j7k4"
}
}, {
"id": "#subject-authenticaton",
"type": "JsonWebKey",
"controller": "did:web:vendor.example",
"publicKeyJwk": {
"kty": "EC",
"crv": "P-384",
"alg": "ES384",
"x": "PxgAmVYOQvSNcMYL2tOzoLwSWn4Ta3tIMPEUKR8pxeb-gmR11-DyKHBoIiY-2LhM",
"y": "BZEBTkImVdpwvxR9THIRw16eblnj5-tZa7m-ww5uVd4kyPJNRoWUn2aT9ZuarAe-"
}
}, {
"id": "#credential-issuance",
"type": "JsonWebKey",
"controller": "did:web:vendor.example",
"publicKeyJwk": {
"kty": "EC",
"crv": "P-256",
"alg": "ES256",
"x": "MYvnaI87pfrn3FpTqW-yNiFcF1K7fedJiqapm20_q7c",
"y": "9YEbT6Tyuc7xp9yRvhOUVKK_NIHkn5HpK9ZMgvK5pVw"
}
}, {
"id": "#key-agreement",
"type": "JsonWebKey",
"controller": "did:web:vendor.example",
"publicKeyJwk": {
"kty": "OKP",
"crv": "X25519",
"alg": "ECDH-ES+A128KW",
"x": "qLZkSTbstvMWPTivmiQglEFWG2Ff7gNDVoVisdZTr1I"
}
}],
"authentication": ["#subject-authenticaton"],
"assertionMethod": ["#credential-issuance"],
"keyAgreement": ["#key-agreement"]
}
{
"@context": ["https://www.w3.org/ns/credentials/v2",
"https://www.w3.org/ns/credentials/examples/v2"
],
"id": "https://contoso.example/credentials/23894672394",
"type": ["VerifiableCredential", "K9UnitCredential"],
"issuer": {
"id": "https://contoso.example"
},
"validFrom": "2015-04-16T05:11:32.432Z",
"credentialStatus": {
"id": "https://contoso.example/credentials/status/4#273762",
"type": "StatusList2021Entry",
"statusPurpose": "revocation",
"statusListIndex": "273762",
"statusListCredential": "https://contoso.example/credentials/status/4"
},
"credentialSubject": [{
"id": "did:example:1312387641",
"type": "Person"
}, {
"id": "did:example:63888231",
"type": "Dog"
}]
}
graph LR
17("VerifiableCredential")
18{{"id"}}
19("https://contoso.example/credentials/23894672394")
20(("type"))
21("K9UnitCredential")
22("issuer")
23{{"id"}}
24("https://contoso.example")
25("validFrom")
26("2015-04-16T05:11:32.432Z")
27("credentialStatus")
28{{"id"}}
29("https://contoso.example/credentials/status/4#273762")
30(("type"))
31("StatusList2021Entry")
32("statusPurpose")
33("revocation")
34("statusListIndex")
35("273762")
36("statusListCredential")
37("https://contoso.example/credentials/status/4")
38("credentialSubject")
39{{"id"}}
40("did:example:1312387641")
41(("type"))
42("Person")
43("credentialSubject")
44{{"id"}}
45("did:example:63888231")
46(("type"))
47("Dog")
17 --- 18
18 --- 19
17 --- 20
20 --- 21
17 --- 22
22 --- 23
23 --- 24
17 --- 25
25 --- 26
17 --- 27
27 --- 28
28 --- 29
27 --- 30
30 --- 31
27 --- 32
32 --- 33
27 --- 34
34 --- 35
27 --- 36
36 --- 37
17 --- 38
38 --- 39
39 --- 40
38 --- 41
41 --- 42
17 --- 43
43 --- 44
44 --- 45
43 --- 46
46 --- 47
---------------- Issuer Claims ---------------- "@context": - https://www.w3.org/ns/credentials/v2 - https://www.w3.org/ns/credentials/examples/v2 !sd id: https://contoso.example/credentials/23894672394 !sd type: - VerifiableCredential - K9UnitCredential issuer: !sd id: https://contoso.example validFrom: 2015-04-16T05:11:32.432Z credentialStatus: !sd id: https://contoso.example/credentials/status/4#273762 !sd type: StatusList2021Entry statusPurpose: revocation statusListIndex: "273762" statusListCredential: https://contoso.example/credentials/status/4 credentialSubject: - !sd id: did:example:1312387641 !sd type: Person - !sd id: did:example:63888231 !sd type: Dog ---------------- Holder Disclosure ---------------- id: False type: True issuer: id: True credentialStatus: id: True ---------------- Decoded Protected Header ---------------- { "alg": "ES256", "typ": "vc+ld+json+sd-jwt", "cty": "vc+ld+json" } ---------------- Decoded Protected Claimset ---------------- { "@context": [ "https://www.w3.org/ns/credentials/v2", "https://www.w3.org/ns/credentials/examples/v2" ], "issuer": { "id": "https://contoso.example" }, "validFrom": "2015-04-16T05:11:32.432Z", "credentialStatus": { "statusPurpose": "revocation", "statusListIndex": "273762", "statusListCredential": "https://contoso.example/credentials/status/4", "id": "https://contoso.example/credentials/status/4#273762" }, "credentialSubject": [ {}, {} ], "iss": "did:web:issuer.example", "iat": 1694712163, "exp": 1726334563, "cnf": { "jwk": { "kty": "EC", "crv": "P-256", "alg": "ES256", "x": "0-rA_OxxO3ryrO4DdmUeid2Y2PHvpUQHq8aCTXiyQIs", "y": "toKEKi40yeyY6Zx0k-MR84-Kj8NAGpckc-tjZEMLJh8" } }, "type": [ "VerifiableCredential", "K9UnitCredential" ] } ---------------- Compact Encoded Selective Disclosure JSON Web Token ---------------- eyJhbGciOiJFUzI1NiIsInR5cCI6InZjK2xkK2pzb24rc2Qtand0IiwiY3R5IjoidmMrbGQranNvbiJ9.eyJAY29udGV4dCI6WyJodHRwczovL3d3dy53My5vcmcvbnMvY3JlZGVudGlhbHMvdjIiLCJodHRwczovL3d3dy53My5vcmcvbnMvY3JlZGVudGlhbHMvZXhhbXBsZXMvdjIiXSwiaXNzdWVyIjp7Il9zZCI6WyJhanQyTUltbi14eFdfQUQ1ODdwdEU1Tno3MlpSN0RVMlJfYTRqZDJvQ3c4Il19LCJ2YWxpZEZyb20iOiIyMDE1LTA0LTE2VDA1OjExOjMyLjQzMloiLCJjcmVkZW50aWFsU3RhdHVzIjp7InN0YXR1c1B1cnBvc2UiOiJyZXZvY2F0aW9uIiwic3RhdHVzTGlzdEluZGV4IjoiMjczNzYyIiwic3RhdHVzTGlzdENyZWRlbnRpYWwiOiJodHRwczovL2NvbnRvc28uZXhhbXBsZS9jcmVkZW50aWFscy9zdGF0dXMvNCIsIl9zZCI6WyJIVm41Mzh6bDJLYVF4M1VXZkRYUFlFblFLTWptYzZnRV9Ual9ab0tLT3hZIiwiaDBRNENtZXVNc2hfWEpVQXEzQlBPYjF6NzYteWhqUTJZQktNNWlTRWg0MCJdfSwiY3JlZGVudGlhbFN1YmplY3QiOlt7Il9zZCI6WyJKUG4wTG41RWdIT1VJdlRhcEc0b2dINE1lYnhZVk1DNHR0ajg3MGt3WGJ3IiwiUnN4SUtTb29lSW04WVZSTnh2NjYyMTZOeF9pcDQtckptO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aGQxS3d1MnVfOGlPU1JTMGlYNEEiLCJhdWQiOiJkaWQ6d2ViOnZlcmlmaWVyLmV4YW1wbGUiLCJpYXQiOjE2OTQ3MTIxNjN9.xgjJ7BFeLFGnhhYv_xawQ6Os2Ra3HyRsoal_yxmQ0FBePnMqM8MIle1jlQNL11S6zOWATtstCCXYXs2Re3Rr5w
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://www.w3.org/ns/credentials/examples/v2"
],
"id": "https://contoso.example/credentials/35327255",
"type": ["VerifiableCredential", "KYCExample"],
"issuer": "did:web:contoso.example",
"validFrom": "2019-05-25T03:10:16.992Z",
"validUntil": "2027-05-25T03:10:16.992Z",
"credentialSchema": {
"id": "https://contoso.example/bafybeigdyr...lqabf3oclgtqy55fbzdi",
"type": "JsonSchema"
},
"credentialSubject": {
"id": "did:example:1231588",
"type": "Person"
}
}
graph LR
48("VerifiableCredential")
49{{"id"}}
50("https://contoso.example/credentials/35327255")
51(("type"))
52("KYCExample")
53("issuer")
54("did:web:contoso.example")
55("validFrom")
56("2019-05-25T03:10:16.992Z")
57("validUntil")
58("2027-05-25T03:10:16.992Z")
59("credentialSchema")
60{{"id"}}
61("https://contoso.example/bafybeigdyr...lqabf3oclgtqy55fbzdi")
62(("type"))
63("JsonSchema")
64("credentialSubject")
65{{"id"}}
66("did:example:1231588")
67(("type"))
68("Person")
48 --- 49
49 --- 50
48 --- 51
51 --- 52
48 --- 53
53 --- 54
48 --- 55
55 --- 56
48 --- 57
57 --- 58
48 --- 59
59 --- 60
60 --- 61
59 --- 62
62 --- 63
48 --- 64
64 --- 65
65 --- 66
64 --- 67
67 --- 68
---------------- Issuer Claims ---------------- "@context": - https://www.w3.org/ns/credentials/v2 - https://www.w3.org/ns/credentials/examples/v2 !sd id: https://contoso.example/credentials/35327255 !sd type: - VerifiableCredential - KYCExample issuer: did:web:contoso.example validFrom: 2019-05-25T03:10:16.992Z validUntil: 2027-05-25T03:10:16.992Z credentialSchema: !sd id: https://contoso.example/bafybeigdyr...lqabf3oclgtqy55fbzdi !sd type: JsonSchema credentialSubject: !sd id: did:example:1231588 !sd type: Person ---------------- Holder Disclosure ---------------- issuer: id: True credentialStatus: id: True credentialSubject: id: True type: False ---------------- Decoded Protected Header ---------------- { "alg": "ES384" } ---------------- Decoded Protected Claimset ---------------- { "@context": [ "https://www.w3.org/ns/credentials/v2", "https://www.w3.org/ns/credentials/examples/v2" ], "issuer": "did:web:contoso.example", "validFrom": "2019-05-25T03:10:16.992Z", "validUntil": "2027-05-25T03:10:16.992Z", "credentialSchema": {}, "credentialSubject": { "id": "did:example:1231588" }, "iss": "did:web:issuer.example", "iat": 1694712163, "exp": 1726334563, "cnf": { "jwk": { "kty": "EC", "crv": "P-384", "alg": "ES384", "x": "18N6gd0_Iy1wSb3apM6HUDW4er21s3wURnGG2cep9oUcMsS6j5fRwsNIpmI9P5PX", "y": "V7xH1xFFszGQ8CV0cnr2PjRTKd5J6Pbm_Njy_trP8r-uBemZPtCPZDm1UsJnN-LQ" } } } ---------------- Compact Encoded Selective Disclosure JSON Web Token ---------------- eyJhbGciOiJFUzM4NCJ9.eyJAY29udGV4dCI6WyJodHRwczovL3d3dy53My5vcmcvbnMvY3JlZGVudGlhbHMvdjIiLCJodHRwczovL3d3dy53My5vcmcvbnMvY3JlZGVudGlhbHMvZXhhbXBsZXMvdjIiXSwiaXNzdWVyIjoiZGlkOndlYjpjb250b3NvLmV4YW1wbGUiLCJ2YWxpZEZyb20iOiIyMDE5LTA1LTI1VDAzOjEwOjE2Ljk5MloiLCJ2YWxpZFVudGlsIjoiMjAyNy0wNS0yNVQwMzoxMDoxNi45OTJaIiwiY3JlZGVudGlhbFNjaGVtYSI6eyJfc2QiOlsiMU1hU3Bzc19ya1hrVWFUUmxoRjQwSnFjbUtSUnFLMWNBVEt5NldoMFJtbyIsInh1QWxDWmdySzNZSElBRV9Pc19waXN2V3Fpa25pdDlTUjhmX1hwV0tlUlUiXX0sImNyZWRlbnRpYWxTdWJqZWN0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1Gkf3KheDrjI_rJP85AOVgeCMEDmZgVxKWYlU9L81AjW0zUl2xl6KuV3yxxS0qM98qi3psMlnJ5rVyF1
{
"@context": ["https://www.w3.org/ns/credentials/v2"],
"type": ["VerifiablePresentation"],
"holder": "urn:ietf:params:oauth:jwk-thumbprint:sha-256:_Fpfe27AuGmEljZE9s2lw2UH-qrZLRFNrWbJrWIe4SI",
"verifiableCredential": [{
"@context": [
"https://www.w3.org/ns/credentials/v2"
],
"type": [
"VerifiableCredential"
],
"issuer": "https://issuer.example/issuers/68",
"validFrom": "2023-06-07T21:14:14.148Z",
"credentialSubject": {
"id": "https://subject.vendor.example"
}
},
"https://vendor.example/credentials/42",
"did:example:123",
"urn:uuid:01ec9426-c175-4e39-a006-d30050e28214",
"urn:ietf:params:oauth:jwk-thumbprint:sha-256:_Fpfe27AuGmEljZE9s2lw2UH-qrZLRFNrWbJrWIe4SI",
"data:application/vc+ld+json;base64,eyJAY29udGV4dCI6WyJodHRwczovL3d3dy53My5vcmcvbnMvY3JlZGVudGlhbHMvdjIiXSwidHlwZSI6WyJWZXJpZmlhYmxlQ3JlZGVudGlhbCJdLCJpc3N1ZXIiOiJkaWQ6andrOmV5SnJhV1FpT2lKMWNtNDZhV1YwWmpwd1lYSmhiWE02YjJGMWRHZzZhbmRyTFhSb2RXMWljSEpwYm5RNmMyaGhMVEkxTmpwdlFtUm1kbVpET1hoNk1GOUJVWFpSTjNZMU1YbERXbDl6ZUdwNU56VkNUSEpJZWsxT1Jqa3lPV1U0SWl3aWEzUjVJam9pVDB0UUlpd2lZM0oySWpvaVJXUXlOVFV4T1NJc0ltRnNaeUk2SWtWa1JGTkJJaXdpZUNJNklqTmljbU5zYjBJNGFEUk5XbFZJYms5UVVHbGtTbXd0U2pkdVVsRkpXSFJUYUZwM1oyNW1jbHAxVDI4aWZRIiwidmFsaWRGcm9tIjoiMjAyMy0wNi0wN1QyMToxNDoxNC4xNDhaIiwiY3JlZGVudGlhbFN1YmplY3QiOnsiaWQiOiJodHRwczovL3N1YmplY3QudmVuZG9yLmV4YW1wbGUifX0="
]
}
graph LR
82("VerifiablePresentation")
83("holder")
84("urn:ietf:params:oauth:jwk-thumbprint:sha-256:_Fpfe27AuGmEljZE9s2lw2UH-qrZLRFNrWbJrWIe4SI")
85("verifiableCredential")
86("issuer")
87("https://issuer.example/issuers/68")
88("validFrom")
89("2023-06-07T21:14:14.148Z")
90("credentialSubject")
91{{"id"}}
92("https://subject.vendor.example")
93("verifiableCredential")
94("https://vendor.example/credentials/42")
95("verifiableCredential")
96("did:example:123")
97("verifiableCredential")
98("urn:uuid:01ec9426-c175-4e39-a006-d30050e28214")
99("verifiableCredential")
100("urn:ietf:params:oauth:jwk-thumbprint:sha-256:_Fpfe27AuGmEljZE9s2lw2UH-qrZLRFNrWbJrWIe4SI")
101("verifiableCredential")
102("data:application/vc+ld+json;base64,eyJAY29udGV4dCI6WyJodHRwczovL3d3dy53My5vcmcvbnMvY3JlZGVudGlhbHMvdjIiXSwidHlwZSI6WyJWZXJpZmlhYmxlQ3JlZGVudGlhbCJdLCJpc3N1ZXIiOiJkaWQ6andrOmV5SnJhV1FpT2lKMWNtNDZhV1YwWmpwd1lYSmhiWE02YjJGMWRHZzZhbmRyTFhSb2RXMWljSEpwYm5RNmMyaGhMVEkxTmpwdlFtUm1kbVpET1hoNk1GOUJVWFpSTjNZMU1YbERXbDl6ZUdwNU56VkNUSEpJZWsxT1Jqa3lPV1U0SWl3aWEzUjVJam9pVDB0UUlpd2lZM0oySWpvaVJXUXlOVFV4T1NJc0ltRnNaeUk2SWtWa1JGTkJJaXdpZUNJNklqTmljbU5zYjBJNGFEUk5XbFZJYms5UVVHbGtTbXd0U2pkdVVsRkpXSFJUYUZwM1oyNW1jbHAxVDI4aWZRIiwidmFsaWRGcm9tIjoiMjAyMy0wNi0wN1QyMToxNDoxNC4xNDhaIiwiY3JlZGVudGlhbFN1YmplY3QiOnsiaWQiOiJodHRwczovL3N1YmplY3QudmVuZG9yLmV4YW1wbGUifX0=")
82 --- 83
83 --- 84
82 --- 85
85 --- 86
86 --- 87
85 --- 88
88 --- 89
85 --- 90
90 --- 91
91 --- 92
82 --- 93
93 --- 94
82 --- 95
95 --- 96
82 --- 97
97 --- 98
82 --- 99
99 --- 100
82 --- 101
101 --- 102
---------------- Issuer Claims ---------------- "@context": - https://www.w3.org/ns/credentials/v2 !sd type: - VerifiablePresentation holder: urn:ietf:params:oauth:jwk-thumbprint:sha-256:_Fpfe27AuGmEljZE9s2lw2UH-qrZLRFNrWbJrWIe4SI verifiableCredential: - "@context": - https://www.w3.org/ns/credentials/v2 !sd type: - VerifiableCredential issuer: https://issuer.example/issuers/68 validFrom: 2023-06-07T21:14:14.148Z credentialSubject: !sd id: https://subject.vendor.example - https://vendor.example/credentials/42 - did:example:123 - urn:uuid:01ec9426-c175-4e39-a006-d30050e28214 - urn:ietf:params:oauth:jwk-thumbprint:sha-256:_Fpfe27AuGmEljZE9s2lw2UH-qrZLRFNrWbJrWIe4SI - data:application/vc+ld+json;base64,eyJAY29udGV4dCI6WyJodHRwczovL3d3dy53My5vcmcvbnMvY3JlZGVudGlhbHMvdjIiXSwidHlwZSI6WyJWZXJpZmlhYmxlQ3JlZGVudGlhbCJdLCJpc3N1ZXIiOiJkaWQ6andrOmV5SnJhV1FpT2lKMWNtNDZhV1YwWmpwd1lYSmhiWE02YjJGMWRHZzZhbmRyTFhSb2RXMWljSEpwYm5RNmMyaGhMVEkxTmpwdlFtUm1kbVpET1hoNk1GOUJVWFpSTjNZMU1YbERXbDl6ZUdwNU56VkNUSEpJZWsxT1Jqa3lPV1U0SWl3aWEzUjVJam9pVDB0UUlpd2lZM0oySWpvaVJXUXlOVFV4T1NJc0ltRnNaeUk2SWtWa1JGTkJJaXdpZUNJNklqTmljbU5zYjBJNGFEUk5XbFZJYms5UVVHbGtTbXd0U2pkdVVsRkpXSFJUYUZwM1oyNW1jbHAxVDI4aWZRIiwidmFsaWRGcm9tIjoiMjAyMy0wNi0wN1QyMToxNDoxNC4xNDhaIiwiY3JlZGVudGlhbFN1YmplY3QiOnsiaWQiOiJodHRwczovL3N1YmplY3QudmVuZG9yLmV4YW1wbGUifX0= ---------------- Holder Disclosure ---------------- id: True type: True holder: id: True ---------------- Decoded Protected Header ---------------- { "alg": "ES256", "typ": "vp+ld+json+sd-jwt", "cty": "vp+ld+json" } ---------------- Decoded Protected Claimset ---------------- { "@context": [ "https://www.w3.org/ns/credentials/v2" ], "holder": "urn:ietf:params:oauth:jwk-thumbprint:sha-256:_Fpfe27AuGmEljZE9s2lw2UH-qrZLRFNrWbJrWIe4SI", "verifiableCredential": [ { "@context": [ "https://www.w3.org/ns/credentials/v2" ], "issuer": "https://issuer.example/issuers/68", "validFrom": "2023-06-07T21:14:14.148Z", "credentialSubject": {} }, "https://vendor.example/credentials/42", "did:example:123", "urn:uuid:01ec9426-c175-4e39-a006-d30050e28214", "urn:ietf:params:oauth:jwk-thumbprint:sha-256:_Fpfe27AuGmEljZE9s2lw2UH-qrZLRFNrWbJrWIe4SI", "data:application/vc+ld+json;base64,eyJAY29udGV4dCI6WyJodHRwczovL3d3dy53My5vcmcvbnMvY3JlZGVudGlhbHMvdjIiXSwidHlwZSI6WyJWZXJpZmlhYmxlQ3JlZGVudGlhbCJdLCJpc3N1ZXIiOiJkaWQ6andrOmV5SnJhV1FpT2lKMWNtNDZhV1YwWmpwd1lYSmhiWE02YjJGMWRHZzZhbmRyTFhSb2RXMWljSEpwYm5RNmMyaGhMVEkxTmpwdlFtUm1kbVpET1hoNk1GOUJVWFpSTjNZMU1YbERXbDl6ZUdwNU56VkNUSEpJZWsxT1Jqa3lPV1U0SWl3aWEzUjVJam9pVDB0UUlpd2lZM0oySWpvaVJXUXlOVFV4T1NJc0ltRnNaeUk2SWtWa1JGTkJJaXdpZUNJNklqTmljbU5zYjBJNGFEUk5XbFZJYms5UVVHbGtTbXd0U2pkdVVsRkpXSFJUYUZwM1oyNW1jbHAxVDI4aWZRIiwidmFsaWRGcm9tIjoiMjAyMy0wNi0wN1QyMToxNDoxNC4xNDhaIiwiY3JlZGVudGlhbFN1YmplY3QiOnsiaWQiOiJodHRwczovL3N1YmplY3QudmVuZG9yLmV4YW1wbGUifX0=" ], "iss": "did:web:issuer.example", "iat": 1694712163, "exp": 1726334563, "cnf": { "jwk": { "kty": "EC", "crv": "P-256", "alg": "ES256", "x": "kwCnTzRddk_115GrqnbWsgoZYn6245DbTxacMAWmL8A", "y": "Z3gMzbmAIHdicgTIFZOE55eh3D6i1KnJTxfqrM9pZ3c" } }, "type": [ "VerifiablePresentation" ] } ---------------- Compact Encoded Selective Disclosure JSON Web Token ---------------- eyJhbGciOiJFUzI1NiIsInR5cCI6InZwK2xkK2pzb24rc2Qtand0IiwiY3R5IjoidnArbGQranNvbiJ9.eyJAY29udGV4dCI6WyJodHRwczovL3d3dy53My5vcmcvbnMvY3JlZGVudGlhbHMvdjIiXSwiaG9sZGVyIjoidXJuOmlldGY6cGFyYW1zOm9hdXRoOmp3ay10aHVtYnByaW50OnNoYS0yNTY6X0ZwZmUyN0F1R21FbGpaRTlzMmx3MlVILXFyWkxSRk5yV2JKcldJZTRTSSIsInZlcmlmaWFibGVDcmVkZW50aWFsIjpbeyJAY29udGV4dCI6WyJodHRwczovL3d3dy53My5vcmcvbnMvY3JlZGVudGlhbHMvdjIiXSwiaXNzdWVyIjoiaHR0cHM6Ly9pc3N1ZXIuZXhhbXBsZS9pc3N1ZXJzLzY4IiwidmFsaWRGcm9tIjoiMjAyMy0wNi0wN1QyMToxNDoxNC4xNDhaIiwiY3JlZGVudGlhbFN1YmplY3QiOnsiX3NkIjpbIndOYTFGX1JPVTdvdUF2RjByU2R2cl9SQnkxSTBjc083Y3ZaNV9HZFFHeU0iXX0sIl9zZCI6WyJIVXNmeUVqM29Za2x0LUd3dGpERklkaUpwVlU2TEl1amtOcWFKZ25qdWY0Il19LCJodHRwczovL3ZlbmRvci5leGFtcGxlL2NyZWRlbnRpYWxzLzQyIiwiZGlkOmV4YW1wbGU6M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