vc-jose-cose icon indicating copy to clipboard operation
vc-jose-cose copied to clipboard

Controller document examples

Open OR13 opened this issue 2 years ago • 3 comments

capturing comments from https://github.com/w3c/vc-jose-cose/pull/144/files

So we can merge it.

  • We need examples with identifiers that are URLs
  • We need examples with identifiers that use JWK Thumbprint URIs

OR13 avatar Sep 11 '23 20:09 OR13

I think we should add the following example:

{
  "@context": [
    "https://www.w3.org/ns/did/v1",
    "https://www.w3.org/ns/credentials/v2"
  ],
  "id": "https://vendor.example/issuers/42",
  "verificationMethod": [
    {
      "id": "https://vendor.example/issuers/42/keys/urn:ietf:params:oauth:jwk-thumbprint:sha-256:NzbLsXh8uDCcd-6MNwXF4W_7noWXFZAfHkxZsRGC9Xs",
      "type": "JsonWebKey2020",
      "controller": "https://vendor.example/issuers/42",
      "publicKeyJwk": {
        "kty": "OKP",
        "crv": "Ed25519",
        "x": "43dp_AtlK65wWjpqgQZDkjm8WLLM5HjPBNxRfPRjuhc"
      }
    }
  ],
  "assertionMethod": [
    "https://vendor.example/issuers/42/keys/urn:ietf:params:oauth:jwk-thumbprint:sha-256:NzbLsXh8uDCcd-6MNwXF4W_7noWXFZAfHkxZsRGC9Xs"
  ],
  "authentication": [
    "https://vendor.example/issuers/42/keys/urn:ietf:params:oauth:jwk-thumbprint:sha-256:NzbLsXh8uDCcd-6MNwXF4W_7noWXFZAfHkxZsRGC9Xs"
  ]
}

OR13 avatar Sep 11 '23 20:09 OR13

Adding more examples could help make the spec more approachable to developers.

selfissued avatar Sep 13 '23 13:09 selfissued

I will update examples after https://github.com/w3c/vc-jose-cose/issues/140

decentralgabe avatar Jun 28 '24 19:06 decentralgabe