question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to verify DID Document returned from Resolver?

See original GitHub issue

Not sure if I might be missing something here, but is there a way to verify the signature of a DID Document returned by the resolver?

The type in the library is “DIDDocument”, which only has (excluding deprecated fields):

id
publicKey
authentication
service
keyAgreement

Does the concept of the resolver rely on trusting the result from the resolver?

I’m currently implementing an did-resolver and being able to verify the signature is something I want to support, so I’m considering adding some parameters to the getResolver method allowing retrieval of the original JWT.

Can also be handled in the resolve method and throw error, since my DID Method API returns the JWT.

Looking at some of the examples here, I see that maybe Document Metadata could be used for the signature?

https://dev.uniresolver.io/

Is it OK to extend the result returned, I see some DID Methods are using the deprecated “proof” section, yet I’d rather conform to the latest specification.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
sondrebcommented, May 7, 2021

Have solved this by returning the proof as part of the didResolutionMetadata. I’ll close this issue now and I’m OK with the proposed answer that this should be up to individual implementations.

1reaction
oedcommented, Feb 9, 2021

IMO it’s up to to the method specific resolvers that you plug into this package to verify the integrity of the resolverd DID document. There is never going to be a “one size fits all” for verifying integrity of DID documents.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Given a DID how do I retrieve its document? Markus Sabadello
http://ssimeetup.org/ did -resolution-given- did -how- do -retrieve- document -markus-sabadello-webinar-13/Markus Sabadello, CEO of Danube Tech, ...
Read more >
Decentralized Identifiers (DIDs) v1.0 - W3C
A system that facilitates the creation, verification, updating, and/or deactivation of decentralized identifiers and DID documents. A verifiable data registry ...
Read more >
Decentralized Identifier Resolution (DID Resolution) v0.3
Validate that the input DID conforms to the did rule of the DID Syntax. If not, the DID resolver MUST return the following...
Read more >
Given a DID how do I retrieve its document? – Markus Sabadello
DID Resolution: DID → DID Document ... Can return resolution metadata. ... DID resolver validates DID Documents before returning them.
Read more >
decentralized-identity/web-did-resolver - GitHub
Web DID Resolver. This library is intended to represent domains accessed through https as Decentralized Identifiers and retrieve an associated DID Document.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found