Skip to content
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

Should a semi-colon be allowed in a specific-idstring? #3

Closed
mrinalwadhwa opened this issue Nov 10, 2018 · 5 comments
Closed

Should a semi-colon be allowed in a specific-idstring? #3

mrinalwadhwa opened this issue Nov 10, 2018 · 5 comments
Labels
question Further information is requested

Comments

@mrinalwadhwa
Copy link
Member

mrinalwadhwa commented Nov 10, 2018

The current version of the DID spec includes examples like this: did:example:123456789abcdefghi;photos

However the grammar doesn't allow that semi-colon. Does this mean that specific schemes can override the generic scheme?

did-reference      = did [ "/" did-path ] [ "#" did-fragment ]
did                = "did:" method ":" specific-idstring
method             = 1*methodchar
methodchar         = %x61-7A / DIGIT
specific-idstring  = idstring *( ":" idstring )
idstring           = 1*idchar
idchar             = ALPHA / DIGIT / "." / "-"
@mrinalwadhwa mrinalwadhwa changed the title Should a semi-colon be allowed in A specific-idstring? Should a semi-colon be allowed in a specific-idstring? Nov 10, 2018
@mrinalwadhwa mrinalwadhwa added the question Further information is requested label Nov 10, 2018
@mrinalwadhwa
Copy link
Member Author

found some discussion about it in the public-credentials mailing list https://lists.w3.org/Archives/Public/public-credentials/2018Feb/thread.html#msg33

@mrinalwadhwa
Copy link
Member Author

Asked this question on the public-credentials mailing list
https://lists.w3.org/Archives/Public/public-credentials/2018Nov/thread.html#msg159

@mrinalwadhwa
Copy link
Member Author

@mrinalwadhwa
Copy link
Member Author

Markus Sabadello wrote:
A specific DID method can certainly NOT override the generic ABNF!

Dmitri Zagidulin wrote:
the example URIs in the spec that contain semicolons
aren't DIDs themselves, they are DID-based Service URIs. (The semicolon is
a proposed mechanism to separate the DID part from the service locator
part). Take a look at the discussion at that PR #90

@mrinalwadhwa
Copy link
Member Author

Added #6 to implement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant