openssi / peer-did-method-spec

A spec for the did:peer DID method.
https://dhh1128.github.io/peer-did-method-spec/index.html
Apache License 2.0
30 stars 17 forks source link

Recognizing peer dids #128

Closed davebryson closed 4 years ago

davebryson commented 4 years ago

Trivial issue, but the Regex to match peer DIDs mentioned here. (Example 3). Will fail for Method 0 peers. It doesn't account for the multicodec value for the given public key format. To handle both, the regex:

^did:peer:[01](z)([1-9a-km-zA-HJ-NP-Z]{46, 47})$ appears to work.

dhh1128 commented 4 years ago

Thank you for this comment. The spec has recently moved to https://github.com/decentralized-identity/peer-did-method-spec; I'll copy this ticket there.

dhh1128 commented 4 years ago

Closing now that the ticket has been moved to its new repo home.