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

did dht resolution inconsistent with web5-js implementation #157

Open
jiyoonie9 opened this issue Jul 8, 2024 · 0 comments
Open

did dht resolution inconsistent with web5-js implementation #157

jiyoonie9 opened this issue Jul 8, 2024 · 0 comments

Comments

@jiyoonie9
Copy link
Contributor

jiyoonie9 commented Jul 8, 2024

using did dht of did:dht:diyiiuks5k1iiep5pjwqfheg47fo9r9iz66agct7qjjxbqw8nxmy, i used the web5-js test method to resolve it and got this as my did document

{
  "id": "did:dht:diyiiuks5k1iiep5pjwqfheg47fo9r9iz66agct7qjjxbqw8nxmy",
  "authentication": [],
  "assertionMethod": [],
  "capabilityDelegation": [],
  "capabilityInvocation": [],
  "verificationMethod": [
    {
      "id": "did:dht:diyiiuks5k1iiep5pjwqfheg47fo9r9iz66agct7qjjxbqw8nxmy#0",
      "type": "JsonWebKey",
      "controller": "did:dht:diyiiuks5k1iiep5pjwqfheg47fo9r9iz66agct7qjjxbqw8nxmy",
      "publicKeyJwk": {
        "kty": "OKP",
        "crv": "Ed25519",
        "x": "HUFazVbapVqhu2po4vEG10sPk_W_vYMyPXJS8LqHE9Y",
        "kid": "eyQ-YzdtG9pk-9m0cvjLsavFXY1765OOHQxCDxz5Mdo",
        "alg": "EdDSA"
      }
    }
  ]
}

however, using the same did dht does not result in the same did document being built

{
  "id": "did:dht:diyiiuks5k1iiep5pjwqfheg47fo9r9iz66agct7qjjxbqw8nxmy"
}

the linked PR #156 can be used to repro this

@jiyoonie9 jiyoonie9 linked a pull request Jul 8, 2024 that will close this issue
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