vc-data-model icon indicating copy to clipboard operation
vc-data-model copied to clipboard

VC-JWT examples are out-of-date

Open vincentkelleher opened this issue 1 year ago • 0 comments

Hi again 👋

While reading the Verifiable Credentials Data Model v2.0 specification and the Securing Verifiable Credentials using JOSE and COSE specification, I've noticed discrepancies about VC-JWT encoding.

If I understand well (after reading some issues, discussions and PRs) the latter specification is the new reference for VC-JWT encoding. It states the following sentence in the JOSE Header and JWT Claims part:

The JWT Claim Names vc and vp MUST NOT be present.

Looking at Example 3 of the VC Data Model v2.0 specification, I noticed that the vc claim is used.

image

I imagine this is an outdated example ? If so, here are the parts of the specification that need to be updated:

  • https://w3c.github.io/vc-data-model/#example-usage-of-the-id-property
  • https://w3c.github.io/vc-data-model/#example-usage-of-the-type-property
  • https://w3c.github.io/vc-data-model/#example-usage-of-the-name-and-description-property
  • https://w3c.github.io/vc-data-model/#example-usage-of-the-credentialsubject-property
  • https://w3c.github.io/vc-data-model/#example-usage-of-issuer-property
  • https://w3c.github.io/vc-data-model/#example-usage-of-issuer-expanded-property
  • https://w3c.github.io/vc-data-model/#example-usage-of-validfrom-and-validuntil-property
  • https://w3c.github.io/vc-data-model/#example-a-simple-credential
  • https://w3c.github.io/vc-data-model/#example-usage-of-issuer-properties

vincentkelleher avatar May 06 '24 16:05 vincentkelleher