Skip to content

Relative DID URLs #880

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

Open
FabioPinheiro opened this issue Feb 14, 2025 · 5 comments
Open

Relative DID URLs #880

FabioPinheiro opened this issue Feb 14, 2025 · 5 comments
Labels
class 2 Changes that do not functionally affect interpretation of the document

Comments

@FabioPinheiro
Copy link
Contributor

I'm back you this question again. (Can't find previous discussions)

In 3.2.2 Relative DID URLs its mention how relative DID URLs look like that how it should be used. Examples are given

But then they are incompatible with the rest of the specs...

Each library implement these on different ways there are incompatibilities.
It's been a pain trying to be interruptible. I cannot even open issues on the libraries because the issue comes from the specification.

In the 5.2 Verification Methods

The value of the id property for a verification method MUST be a string that conforms to the rules in Section 3.2 DID URL Syntax.

In the 5.2.2 Referring to Verification Methods

if the value is a URL string, the verification method has been included by reference and its properties will need to be retrieved from elsewhere in the DID document or from another DID document. This is done by dereferencing the URL and searching the resulting resource for a verification method map with an id property whose value matches the URL.

In 5.2.2 Referring to Verification Methods

This is done by dereferencing the URL and searching the resulting resource for a verification method map with an id property whose value matches the URL.

@msporny msporny added the class 2 Changes that do not functionally affect interpretation of the document label Mar 28, 2025
@msporny
Copy link
Member

msporny commented Mar 28, 2025

@FabioPinheiro what change would you like to see in the specification? Can you propose some concrete text?

Based on my read of https://www.w3.org/TR/did-1.0/#relative-did-urls ... and 5.2, you coerce any relative value using the rules in section 3.2.2. IOW, I don't see what the issue is, can you specify exactly what problem it is that you are experiencing?

@FabioPinheiro
Copy link
Contributor Author

believe there is another ticket and two PRs +- related with this.
I need to build the current version of the document and read again.

But basically I believe that in section 5.2 instead of The value of the id property for a verification method MUST be a string that conforms to the rules in Section 3.2 DID URL Syntax." it should aloud for relative did urls.
Because the relative did urls is NOT a specific part of the Syntax since it does not follow the rules defined of the DID URLs.

@FabioPinheiro
Copy link
Contributor Author

BTW one of the PRs I was taking is here w3c/did-resolution#130

@peacekeeper
Copy link
Contributor

@FabioPinheiro do you agree that in DID Resolution this has been fixed by w3c/did-resolution#125 ?

Then if I understand correctly, you are saying that here in DID Core we should also clarify that the value of id properties can be relative DID URLs?

@FabioPinheiro
Copy link
Contributor Author

FabioPinheiro commented Apr 10, 2025

yes

In terms of examples, there is already one added by #860 (PR #874) before I open a issue.

My problem is that the specification in 5.2 "The value of the id property for a verification method MUST be a string that conforms to the rules in Section 3.2 DID URL Syntax." is in contradiction. Because the DID URL Syntax doesn't account for Relative DID URL for my understanding.

IMO (and I'm having some difficulties of having the current state of the document at the moment) we should specify/rename DID URL to Full DID URL and generalize the name DID URL to be either full or relative DID URLs. And then revisit the whole document to figure out if it should be using Full DID URL or a DID URL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
class 2 Changes that do not functionally affect interpretation of the document
Projects
None yet
Development

No branches or pull requests

3 participants