-
Notifications
You must be signed in to change notification settings - Fork 45
Allow DID documents to be retrieved using any URI scheme #84
Comments
What happens if the protocol you're using to resolve the identifier doesn't provide a content-type in return? We have a couple of DID Resolvers that might never return content-types (Bitcoin and Ethereum come to mind). I guess we could require that all Resolvers return content-types... but given the absence of a content-type, the front part of the URI "did" provides all the information you need to process the document. |
I had thought about this in the context of, e.g., a ftp: URI, and have only partial response. The partial response is that certain DID methods or associated protocols might be associated specifically with the DID Document MIME type. Could that work for Etherium? It doesn't answer the ftp: case, but I guess the answer there could be: don't use those URIs for referencing DID documents? I guess this this does suggest a specific role for the did: scheme type - any resource dereferenced using such a URI MUST return a representation of the appropriate MIME content-type (**). This would provide a way of ensuring awkward protocols can be handled, without insisting that DID documents can be dereferenced using only did: URIs. I think that requiring a resource dereferenced using any URI scheme other than did: MUST NOT be a DID Document falls foul of the web architecture principle cited. (**) I note this might seem contradictory with the next paragraph, but I think it's different to say that a URI scheme is associated with a specific content-type than to say that a client can assume something about the content-type from the URI scheme. The client should generally be able to use a URI as an opaque identifier/locator, but the dereferencing logic necessarily has to know something about the scheme in order to perform dereferencing. |
Part of this is about MIME Types for DID Documents, and part of this is about what a DID Resolver returns. |
Closing as we have adopted this issue in the new DIDWG repo. |
@gklyne wrote:
The text was updated successfully, but these errors were encountered: