peer-did-method-spec icon indicating copy to clipboard operation
peer-did-method-spec copied to clipboard

error in method 2 ABNF?

Open dhh1128 opened this issue 3 years ago • 1 comments

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

dhh1128 avatar Sep 22 '21 21:09 dhh1128

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

DenisRybas avatar Sep 23 '21 11:09 DenisRybas