w3c / vc-test-suite

Verifiable Credentials WG Test Suite
https://w3c.github.io/vc-test-suite/
BSD 3-Clause "New" or "Revised" License
68 stars 39 forks source link

Invalid base context in example-016-jwt.jwt #103

Open kdimak opened 4 years ago

kdimak commented 4 years ago

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 commented 4 years ago

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