- From: Mrinal Wadhwa <mrinal@ockam.io>
- Date: Mon, 19 Nov 2018 20:03:45 -0800
- To: public-credentials@w3.org
- Message-ID: <CAPWFucEUPVaXr1wGNnkQc_jGc6cZMiTj4SBwbPc5eTvm06vobg@mail.gmail.com>
Hi Markus & Dimitri, Thank you both. Reading through #90 and #85 and the grammar in Universal Resolver was extremely helpful. I've added issues to the Golang parser to add support for both DID queries and service URIs. https://github.com/ockam-network/did/issues Cheers, Mrinal > Dmitri Zagidulin <dzagidulin@gmail.com> wrote: > > Hi Mrinal, > > As Markus mentioned, 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, it goes into details. > > Dmitri > On Mon, Nov 19, 2018 at 7:27 AM Markus Sabadello <markus@danubetech.com> wrote: > > Hello Mrinal, > > Thanks for your comments, the ABNF isn't fully up-to-date. > > There's currently some discussion about the exact syntax for service names: > https://github.com/w3c-ccg/did-spec/issues/90 > > Also note that we're still missing did-query in the ABNF: > https://github.com/w3c-ccg/did-spec/issues/85 > > A specific DID method can certainly NOT override the generic ABNF! > > Here's the ABNF we're currently using in the Universal Resolver > <http://uniresolver.io/> implementation: > > https://github.com/decentralized-identity/did-common-java/blob/master/src/main/resources/did.abnf > > Markus > On 11/17/18 2:43 AM, Mrinal Wadhwa wrote: > > Hi everyone, > > The current published version of the DID spec (v0.11) includes examples > like this: did:example:123456789abcdefghi;photos > > However the grammar in v0..11 doesn't allow that semi-colon. > > 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 / "." / "-" > > > Is this an error or does this mean that specific schemes can override the > generic scheme? > > Our team has open sourced our Golang DID Parser > https://github.com/ockam-network/did > > Thank you all, > Mrinal > > CTO @ Ockam >
Received on Tuesday, 20 November 2018 04:04:26 UTC