vc-test-suite icon indicating copy to clipboard operation
vc-test-suite copied to clipboard

Invalid base context in example-016-jwt.jwt

Open kdimak opened this issue 5 years ago • 1 comments

When decoded, VC inside JWS (example-016-jwt.jwt) is incorrect:

{
  "@context": [
    "https://w3.org/2018/credentials/v1",
    "https://example.com/examples/v1"
  ],
  "credentialSubject": {
    "degree": {
      "name": "Bachelor of Science in Mechanical Engineering",
      "type": "BachelorDegree"
    }
  },
  "expirationDate": "2019-11-06T08:42:03Z",
  "id": "http://example.edu/credentials/3732",
  "issuanceDate": "2018-11-06T08:42:04Z",
  "issuer": "did:example:abfe13f712120431c276e12ecab",
  "type": [
    "VerifiableCredential",
    "UniversityDegreeCredential"
  ]
}

as the first context must be https://www.w3.org/2018/credentials/v1 (according to https://w3c.github.io/vc-data-model/#contexts). And here www is missing (currently the context is https://w3.org/2018/credentials/v1).

kdimak avatar Dec 20 '19 22:12 kdimak

@awoie Can we apply #102 where the @context has the correct value?

kdimak avatar Dec 20 '19 22:12 kdimak