Skip to content

Commit

Permalink
Merge pull request #143 from w3c/adjust/normative-headers
Browse files Browse the repository at this point in the history
Changes to normative statements
  • Loading branch information
OR13 authored Sep 8, 2023
2 parents 1247eed + cab349d commit 9e717da
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,20 @@ <h2>Securing the VC Data Model</h2>
transformation, while at the same time supporting registered
claims that are understood in the context of JOSE and COSE.
</p>
<p>
It is RECOMMENDED that media types be used to distinguish <a data-cite="VC-DATA-MODEL#credentials">verifiable credentials</a>
and <a data-cite="VC-DATA-MODEL#presentations">verifiable presentations</a> from other kinds of secured JSON or CBOR.
</p>
<p>
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
<code>application/sd-jwt</code>, <code>application/vc+ld+json+sd-jwt</code>
ought to be used, unless there is a more specific media type that would even
better identify the secured envelope format.
</p>
<p>
If implementations do not know which media type to use, media types defined in this specification MUST be used.
</p>
<section>
<h2>With JOSE</h2>
<section>
Expand All @@ -215,10 +229,10 @@ <h2>Securing JSON-LD Verifiable Credentials with JOSE</h2>
</p>
<p>[[rfc7515]] MAY be used to secure this media type.</p>
<p>
The <code>typ</code> parameter MUST be <code>vc+ld+json+jwt</code>
The <code>typ</code> parameter SHOULD be <code>vc+ld+json+sd-jwt</code>
</p>
<p>
When present, the <code>cty</code> MUST be
When present, the <code>cty</code> SHOULD be
<code>vc+ld+json</code>
</p>
<p>
Expand Down Expand Up @@ -256,10 +270,10 @@ <h2>Securing JSON-LD Verifiable Presentations with JOSE</h2>
<code>application/vp+ld+json</code> with JOSE.
</p>
<p>[[rfc7515]] MAY be used to secure this media type.</p>
<p>The <code>typ</code> parameter MUST be
<p>The <code>typ</code> parameter SHOULD be
<code>vp+ld+json+jwt</code>
</p>
<p>When present, the <code>cty</code> parameter MUST be
<p>When present, the <code>cty</code> parameter SHOULD be
<code>vp+ld+json</code>
</p>
<p>
Expand Down Expand Up @@ -308,7 +322,7 @@ <h2>With COSE</h2>
<p>
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.
</p>
<section>
Expand All @@ -319,15 +333,15 @@ <h2>Securing JSON-LD VCs with COSE</h2>
with COSE.
</p>
<p>[[rfc9052]] MAY be used to secure this media type.</p>
<p>When using this approach, the <code>type (TBD)</code> MUST be
<p>When using this approach, the <code>type (TBD)</code> SHOULD be
<code>vc+ld+json+cose</code>
</p>
<p class="issue">
See <a href="https://datatracker.ietf.org/doc/draft-jones-cose-typ-header-parameter/">draft-jones-cose-typ-header-parameter</a>,
regarding progress towards explicit typing for COSE.
</p>
<p>When using this approach, the <code>content type (3)</code>
MUST be <code>application/vc+ld+json</code></p>
SHOULD be <code>application/vc+ld+json</code></p>
<p>
See <a data-cite="rfc9052#section-3.1">Common COSE Header
Parameters</a> for additional details.
Expand Down

0 comments on commit 9e717da

Please sign in to comment.