Open F-Node-Karlsruhe opened 2 years ago
I agree this would be a useful feature. This is part of a bigger concept called DID URL Dereferencing, which is partially explained in the DID Core spec (see here), and partially in the DID Resolution spec (see here). There are also some test cases in the DID Resolution test suite (see here).
There are some things to consider, e.g. the representation of the DID document (JSON-LD or JSON or CBOR etc.) and relative references. In general URI architecture, dereferencing a fragment depends not on the URI scheme (i.e. "did:"), but on the content type of the deferenced primary resource (i.e. the DID document).
Anyway, this is just some background information, and not all the details are "officially" specified yet. In general, +1 to supporting the dereferencing of fragments in DID resolution libraries like this one.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Is your feature request related to a problem? Please describe. I'm currently using the web-did-resolver in a custom document loader and it works very well, but i still have to query key fragments separately like so:
Describe the solution you'd like If the key fragment is specified the resolver should not return the DID document, but the key fragment document. (See code above)
Describe alternatives you've considered See code above
Moved here from https://github.com/decentralized-identity/web-did-resolver/issues/121