-
Notifications
You must be signed in to change notification settings - Fork 93
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
Inconsistant namspace for method
and/or method-specific-id
#98
Comments
@mitfik I don't think there is a contradiction. Yes we are saying that "DID method namespaces" MAY include colons. But this doesn't mean that the method name (the ABNF
The DID method is Other real-life examples include Having said that, we may be able to improve the Does this make sense? |
Thanks @peacekeeper for clarification I think now I got it. To put that in my words it would be: We can use namespace within DID method so the So if above is correct is just within the spec the wording which make it harder to understand as If that all above make sens we can consider to clarify that as well within the documentation and/or close the ticket. p.s. |
@mitfik and @peacekeeper Having caught up with this issue, I see the problem. It is not with the ABNF, it is with the rule names we are using and the editorial text that explains the ABNF. Since I believe DID namespacing is going to become more important than we originally thought, I am happy to suggest a revision to the ABNF that will not change the ultimate structure of a DID, but which will give us a consistent way to refer to multi-level DID namespaces. If you agree that will address the problem, let me know via reply and then I'll work up a PR. |
@talltree I see one potential risk with changing the ABNF in that manner: If the ABNF is changed to more strongly emphasize the possibility of "multi-level DID namespaces", then we may give the impression that there are method-independent semantics and behaviors which are defined by the DID spec for all "levels" (colons). But in fact only the first and second colon are method-independent, any additional "levels" (colons) are method-specific. Some methods use this syntax to indicate which chain/ledger to use, but other methods may have very different use cases for namespacing. So I actually like the fact that this is currently encapsulated inside the Perhaps if we want to change the ABNF, we can work on the |
@mitfik do you still have any comments on this issue, or a proposed PR to fix/improve this? Otherwise I propose to close the issue. |
All good from my side. Thanks! |
Actually I created PR #215 to address the last few comments in this issue. |
* Clarify use of colon in method-specific-id. Addresses #98, #152. * Address comment by @davidlehn about use of colons. * Use hyphen in "method-specific". Co-Authored-By: Manu Sporny <msporny@digitalbazaar.com> Co-Authored-By: David I. Lehn <dil@lehn.org>
ABNF says:
and spec says:
According to the ABNF
method
can not have namespace butmethod-specific-id
can.If I understand it correctly it is not consistent as is not clear if
method
ormethod-specific-id
can be namespaces.Am I missing something?
The text was updated successfully, but these errors were encountered: