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

didcore.Document @context non-string types #92

Closed
KendallWeihe opened this issue Feb 28, 2024 · 3 comments
Closed

didcore.Document @context non-string types #92

KendallWeihe opened this issue Feb 28, 2024 · 3 comments

Comments

@KendallWeihe
Copy link
Contributor

From the spec https://www.w3.org/TR/did-core/#dfn-context

The JSON-LD Context is either a string or a list containing any combination of strings and/or ordered maps.

From LinkedIn's did:web https://www.linkedin.com/.well-known/did.json

{
  "id": "did:web:www.linkedin.com",
  "@context": [
    "https://www.w3.org/ns/did/v1",
    { "@base": "did:web:www.linkedin.com" }
  ],
  "service": [
    {
      "id": "#linkeddomains",
      "type": "LinkedDomains",
      "serviceEndpoint": { "origins": ["https://www.linkedin.com/"] }
    },
    {
      "id": "#hub",
      "type": "IdentityHub",
      "serviceEndpoint": {
        "instances": [
          "https://hub.did.msidentity.com/v1.0/658728e7-1632-412a-9815-fe53f53ec58b"
        ]
      }
    }
  ],
  "verificationMethod": [
    {
      "id": "#074cfbf193f046bcba5841ac4751e91bvcSigningKey-46682",
      "controller": "did:web:www.linkedin.com",
      "type": "EcdsaSecp256k1VerificationKey2019",
      "publicKeyJwk": {
        "crv": "secp256k1",
        "kty": "EC",
        "x": "NHIQivVR0HX7c0flpxgWQ7vRtbWDvr0UPN1nJ--0lyU",
        "y": "hYiIldgLRShym7vzflFrEkg6NYkayUHkDpV0RMjUEYE"
      }
    }
  ],
  "authentication": ["#074cfbf193f046bcba5841ac4751e91bvcSigningKey-46682"],
  "assertionMethod": ["#074cfbf193f046bcba5841ac4751e91bvcSigningKey-46682"]
}
@KendallWeihe
Copy link
Contributor Author

There are more properties than just the @context, for example look at the services. Feel free to use this ticket to create new tickets.

@KendallWeihe
Copy link
Contributor Author

KendallWeihe commented Mar 1, 2024

Reviewing the spec for other instances of mixed types...

The following are all for embedded VMs, so could probably be implemented together

@KendallWeihe
Copy link
Contributor Author

Closing in favor of #109

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

Successfully merging a pull request may close this issue.

1 participant