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

Controller document examples #154

Open
OR13 opened this issue Sep 11, 2023 · 3 comments
Open

Controller document examples #154

OR13 opened this issue Sep 11, 2023 · 3 comments
Assignees
Labels
editorial Editorial changes only post-CR

Comments

@OR13
Copy link
Contributor

OR13 commented Sep 11, 2023

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
Copy link
Contributor Author

OR13 commented Sep 11, 2023

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"
  ]
}

@selfissued
Copy link
Collaborator

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

@selfissued selfissued added editorial Editorial changes only post-CR labels Sep 13, 2023
@decentralgabe decentralgabe assigned decentralgabe and unassigned OR13 Jun 28, 2024
@decentralgabe
Copy link
Collaborator

I will update examples after #140

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editorial Editorial changes only post-CR
Projects
None yet
Development

No branches or pull requests

3 participants