-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recognizing and handling peer DIDs Regex seems out of date #31
Comments
minimally, seems to need
|
Yes, the regex is out of date. |
Might make sense to do something like this: Then have method specific Regex base on the It seems that the current regex is over specific anyway. The number of characters is only true if uses the |
Also running into some issues with the regex when using other types of keys. E.g the fingerprint of a bls12381g1 key looks like this. Which is 69 characters long.
Or the g2 variant, which is 134 characters long
Maybe we should just remove the character limit in the regex? Or at least make it sufficient for longer keys |
The regex seems to be out of date.
^did:peer:[01](z)([1-9a-km-zA-HJ-NP-Z]{46,47})$
numalgo
possibilitiesnumalgo
even though it is referenced.peer-did-method-spec/core.html
Line 279 in 202a913
The text was updated successfully, but these errors were encountered: