decentralized-identity / peer-did-method-spec

A rich DID method that has no blockchain dependencies. The verifiable data registry is a synchronization protocol between peers.
https://decentralized-identity.github.io/peer-did-method-spec/index.html
Apache License 2.0
27 stars 17 forks source link

error in method 2 ABNF? #34

Open dhh1128 opened 3 years ago

dhh1128 commented 3 years ago

Tagging @TelegramSam and @DenisRybas, who have each looked at this recently.

Example 2 in the spec shows ABNF for method 2. It shows that "S" is a purpose, but that services are also prefixed with an "S". Is this redundant? The regex recently submitted by Denis does not show that "S" is a valid purpose...

https://identity.foundation/peer-did-method-spec/index.html#example-2-abnf-for-peer-dids

DenisRybas commented 3 years ago

I think there is a redundant "S" in the service section because if we add the "S" prefix before each service in the case of multiple services, we will not be able to decode them correctly. So I think the .S<encoded value of service header> would be correct