w3c-ccg / did-spec

Please see README.md for latest version being developed by W3C DID WG.
https://w3c.github.io/did-core/
Other
124 stars 45 forks source link

All methods must have a name of at least 3 characters #160

Closed TomCJones closed 5 years ago

TomCJones commented 5 years ago

in did-resolution issue 11 I created this request - it was suggested that the issue belonged here as it was a syntax issue. I disagree, I believe it is a governance issue. I am not sure if governance belongs here or in resolution. https://github.com/w3c-ccg/did-resolution/issues/11

please address the issue first about where this belong and only then about the context.

I believe that did method names should reserve ISO 3311 2 character country codes for use by the countries. see https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2

in my resolvers I will not resolve 2 character method names that are not sponsored by the relevant country.

peacekeeper commented 5 years ago

@TomCJones sorry the title of your original issue wasn't clear enough to me.

If you suggest that method names with less than 3 characters are not allowed and considered invalid DIDs (this is how I interpreted your issue originally, since you said "must have a name of at least 3 characters"), then it's a syntax issue that belongs here.

If you suggest that such DIDs are syntactically valid, but that there should be special governance rules, then at least to me it's not clear yet where it belongs. Perhaps into the did-method-registry. Since we want to avoid central authorities for DID infrastructure, the topic of how DID methods are governed is not so trivial.

If you suggest that method names with less than 3 characters should have special rules for how they get resolved, then it belongs in did-resolution.

TomCJones commented 5 years ago

Sorry I was not clear. Yes 2 char names are valid, but are under control of iso std. I suggested it is a governance issue as one possible solution.

msporny commented 5 years ago

Yes 2 char names are valid, but are under control of iso std.

Strong -1 -- the Veres One DID Method is "did:v1" -- we have shipped to customers, built software around that, etc.

I suggest a different did method approach that's under ISO: "did:iso:uk" ... etc.

TomCJones commented 5 years ago

since v1 is not in the iso chart (it is only two alpha codes) I might agree to resolve v1. But I would not agree to resolve op, for example. nor will I resolve single character codes.

davidlehn commented 5 years ago

@TomCJones Can you explain why country codes, or any other list of codes, should be reserved as method names?

TomCJones commented 5 years ago

I could, but no longer see any point in that. Try googling.

TomCJones commented 5 years ago

i give up

msporny commented 5 years ago

i give up

Don't give up yet, you're getting community feedback on your proposal. :)

Why is the following not ok?

"did:iso3166:"