From ad467785c5d227e5481df8853c1f588a04b8549c Mon Sep 17 00:00:00 2001
From: Orie Steele Securing JSON-LD Verifiable Credentials with JOSE
[[rfc7515]] MAY be used to secure this media type.
- The typ
parameter MUST be vc+ld+json+jwt
+ The typ
parameter SHOULD be vc+ld+json+sd-jwt
- When present, the cty
MUST be
+ When present, the cty
SHOULD be
vc+ld+json
@@ -256,10 +256,10 @@
application/vp+ld+json
with JOSE.
[[rfc7515]] MAY be used to secure this media type.
-The typ
parameter MUST be
+
The typ
parameter SHOULD be
vp+ld+json+jwt
When present, the cty
parameter MUST be
+
When present, the cty
parameter SHOULD be
vp+ld+json
@@ -308,7 +308,7 @@
COSE [[rfc9052]] is a common approach to encoding and securing information using CBOR [[rfc8949]]. Verifiable credentials MAY - be secured using COSE [[rfc9052]] and MUST be identified through + be secured using COSE [[rfc9052]] and SHOULD be identified through use of content types as outlined in this section.
[[rfc9052]] MAY be used to secure this media type.
-When using this approach, the type (TBD)
MUST be
+
When using this approach, the type (TBD)
SHOULD be
vc+ld+json+cose
@@ -327,7 +327,7 @@
When using this approach, the content type (3)
- MUST be application/vc+ld+json
application/vc+ld+json
See Common COSE Header
Parameters for additional details.
From 6a821e1795c9caa792dbb47821a50d28769a9ee6 Mon Sep 17 00:00:00 2001
From: Orie Steele Securing the VC Data Model
transformation, while at the same time supporting registered
claims that are understood in the context of JOSE and COSE.
+ It is RECOMMENDED using media types to distinguish verifiable credentials, + and verifiable presentations from other kinds of secured JSON or CBOR. +
+
+ If a more specific media type is available, it SHOULD be used over the generic media types.
+ For example, instead of using application/sd-jwt
, use application/vc+ld+json+sd-jwt
,
+ unless there is a more specific media type that can be used to better identify the secured envelope format.
+
- It is RECOMMENDED using media types to distinguish verifiable credentials, - and verifiable presentations from other kinds of secured JSON or CBOR. + It is RECOMMENDED that media types be used to distinguish verifiable credentials + and verifiable presentations from other kinds of secured JSON or CBOR.
If a more specific media type is available, it SHOULD be used over the generic media types.
From 2c56d85cfae9e2278973d62352644bce210ecffc Mon Sep 17 00:00:00 2001
From: Orie Steele Securing the VC Data Model
and verifiable presentations from other kinds of secured JSON or CBOR.
- If a more specific media type is available, it SHOULD be used over the generic media types.
- For example, instead of using application/sd-jwt
, use application/vc+ld+json+sd-jwt
,
- unless there is a more specific media type that can be used to better identify the secured envelope format.
+ 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. +