-
Notifications
You must be signed in to change notification settings - Fork 8
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
Relative path resolution #13
Comments
Is the idea for this to add this such that it can be used for any DID Method? E.g. that it not be specific to a web-based DID method, but for any DID Method? With a web-based DID method, it is dead simple and obvious to say that a DID path is just simple text transformation extending the existing DID —> HTTPS transformation. That is what is proposed for the
That has the benefit that it eliminates the need for a service endpoint — the interpretation is (as the DID Core spec says…) left to the DID Method. |
Where did we land on this today? Do we need a service to do the relative path stuff or can we define the path behaviour in this method? |
The summary that I got:
Whether to use a hashlink, or it a header is returned or not is up to the Controller. I think it is up to the resolver implementation based on the DID URL spec to decide how far to go in resolving a passed in DID URL — should it return the DIDDoc, the resulting URI or resolve the URI? I’m not sure of that. |
I still can't quite make heads or tails of this. Suppose I have a local file named |
Here is how I understand it:
Does that work? It leaves off the obvious use case of just being able to trivially put any file “adjacent" to the DIDDoc (
|
I think we can close this issue with what is in the draft spec. now -- https://bcgov.github.io/trustdidweb/#did-url-resolution. |
Mostly complete, with a need to formalize the handling of files when the DID Log File's location is |
Resolved -- description is in the specification, as is the service definition. |
The DID spec does not outline a process for resolving a generic DID URL, ie. a DID with a path attachment (
did:method/relative/path
), leaving this up to specific DID methods. It does specifyservice
andrelativeRef
DID parameters that can be used to resolve paths via service endpoints. An example from the did:web Anoncreds method:Now we could define a simple alias as part of this DID method, and automatically map any DID URL of of the form
{DID}/service/{SERVICE}{PATH}{?PARAMS}
(for example). In this case the above resource might be represented as:On resolution it would simply be transformed into the original format before proceeding. Parameters such as
hl
(hashlink) should be preserved when this happens, for processing during the resolution process, but not added to the resulting URL.For more flexibility we could enable path prefixes to be mapped by one or more methods. For example, a service entry of a recognized type:
or an external file defining the mappings:
The text was updated successfully, but these errors were encountered: