Re: [w3ctag/design-reviews] Review Request - Decentralized Identifiers (DIDs) v1.0 (#556)

@LeaVerou thanks for your feedback. As you note, URN syntax has been an inspiration for DID URL syntax. You are correct that NIDs and NSSes in URNs are parsed as paths, and the same is true for a DID's method-name and method-specific-id. Note that URNs actually also allow the `/` character. E.g.:

- For `urn:example:1/406/47452/2`, the parsed URL path is `example:1/406/47452/2`.
- For `did:example:12345/my/path`, the parsed URL path is `example:12345/my/path`.

In order to get the "path starting with the first slash", a parser would have to manually support that, this is the case for both URN and DID URL syntax. I would agree that this may be a bit unintuitive and confuse badly written parsers, but it should be consistent and fully compliant with standard URI syntax.

Also see this comment in our corresponding issue for more details: https://github.com/w3c/did-core/issues/556#issuecomment-762984818.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/556#issuecomment-763174439

Received on Tuesday, 19 January 2021 22:11:55 UTC