CARVIEW |
Navigation Menu
-
Notifications
You must be signed in to change notification settings - Fork 19
Description
DID Resolution Result says:
This section defines a data structure that represents the result of the algorithms described in § 3. Resolving a DID and § 4. Dereferencing a DID URL. A DID resolution result contains a DID document as well as DID resolution metadata and DID document metadata.
The result of § 4. Dereferencing a DID URL might not be a DID document but could be something else, e.g. a verification method (Example 8), or a output service endpoint URL (Example 10). DID Core (in § 7.2 DID URL Dereferencing.) says that contentStream
, the resource part of the return value of DID URL dereferencing, "MAY be a resource such as a DID document that is serializable in one of the conformant representations, a Verification Method, a service, or any other resource format that can be identified via a Media Type and obtained through the resolution process".
Should the DID Resolution Result section, and the JSON-LD context file, be updated to support DID URL dereferencing results other than DID documents?
In DID Test Suite there are examples of outputs of DID URL dereferencing, similar to the outputs for DID resolution, which perhaps could be useful here. In these, the contentStream
property is a string (even if the content is a DID Document or JSON/JSON-LD object), dereferencingMetadata
is an object, like didResolutionMetadata
; and contentMetadata
is an object, like didDocumentMetadata
. e.g.:
- https://github.com/w3c/did-test-suite/blob/1b86f694ad40e0b61472f02e8cd06a200ac2b4f9/packages/did-core-test-server/suites/implementations/dereferencer-polygon-ayanworks.json#L18-L24 DID document resolved with no parameters
- https://github.com/w3c/did-test-suite/blob/1b86f694ad40e0b61472f02e8cd06a200ac2b4f9/packages/did-core-test-server/suites/implementations/dereferencer-3-3box-labs.json#L19-L31 - DID document resolved with
versionTime
- https://github.com/w3c/did-test-suite/blob/1b86f694ad40e0b61472f02e8cd06a200ac2b4f9/packages/did-core-test-server/suites/implementations/dereferencer-mattr.json#L107-L122 service+relativeRef returning a URL
- https://github.com/w3c/did-test-suite/blob/1b86f694ad40e0b61472f02e8cd06a200ac2b4f9/packages/did-core-test-server/suites/implementations/dereferencer-web-transmute.json#L19-L25 service+relativeRef returning a file
- https://github.com/w3c/did-test-suite/blob/1b86f694ad40e0b61472f02e8cd06a200ac2b4f9/packages/did-core-test-server/suites/implementations/dereferencer-spruce-key.json#L35-L41 verification method (JSON-LD)
- https://github.com/w3c/did-test-suite/blob/1b86f694ad40e0b61472f02e8cd06a200ac2b4f9/packages/did-core-test-server/suites/implementations/dereferencer-mattr.json#L55-L61 verification method (JSON)