Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update secured-vc-with-schema-credential #7

Open
andresuribe87 opened this issue Aug 18, 2023 · 0 comments
Open

Update secured-vc-with-schema-credential #7

andresuribe87 opened this issue Aug 18, 2023 · 0 comments

Comments

@andresuribe87
Copy link

Once w3c/vc-json-schema#204 is merged, the value of https://github.com/w3c/vc-jose-cose-test-suite/blob/main/testcases/secured-vc-with-schema-credential/schema.jwt has to be updated so that the payload of said JWT includes the credentialSchema property.

For simplicity, I'm providing the correct payload below:

{
  "@context": [
    "https://www.w3.org/ns/credentials/v2"
  ],
  "type": [
    "VerifiableCredential",
    "JsonSchemaCredential"
  ],
  "issuer": "https://vendor.example/issuers/42",
  "credentialSchema": {
    "id": "https://www.w3.org/2022/credentials/v2/json-schema-credential-schema.json",
    "type": "JsonSchema",
    "digestSRI": "sha384-S57yQDg1MTzF56Oi9DbSQ14u7jBy0RDdx0YbeV7shwhCS88G8SCXeFq82PafhCrW"
  },
  "credentialSubject": {
    "type": "JsonSchema",
    "jsonSchema": {
      "$id": "https://w3c.github.io/vc-jose-cose-test-suite/testcases/secured-vc-schema-credential/schema.json",
      "title": "Example JSON Schema",
      "description": "This is a test schema",
      "type": "object",
      "properties": {
        "credentialSubject": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "pattern": "https://(.+)/issuers/(.+)"
            }
          }
        }
      }
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant