-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
feat!: update Denom regex to support more DID characters #9699
Conversation
Visit https://dashboard.github.orijtech.com?pr=9699&repo=cosmos%2Fcosmos-sdk to see benchmark details. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
@alexanderbez do you see any potential issues here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @aaronc Great to see this! Supports the path towards a Tokens 2.0 framework for all token types and classes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, can we add a changelog entry?
Fragments can't be inside a |
@ig-shaun By convention, URL fragments are handled entirely by the client. The #fragment part does not go to the server with traditional http URLs. The browser simply handles the focus when rendering the html. However, there is an additional component in the DID world, DID URLs:
So, DID URLs can have fragments. And, in some cases, a DID URL with a fragment may be used to refer to a particular linked resource (or other property value) in a DID Document. The main adjustment would be an expected practice in any case: instead of blindly resolving a DID URL (sending the whole thing), the resolver can (and probably should) clip the query and fragment parts and treat a DID URL at resolution as if it were just the DID part. FWIW, the DID Resolver specification is still in early development. Also--although there are 90+ DID methods and I only know a subset--the only planned use I have heard of for % encoding is for query and fragment parts which is fairly familiar from the Web. For robustness, we should plan on getting that support in, but it's unlikely to be a factor with a normal DID method design. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
* feat!: support DID method-specific-id regex in denoms * udpate docs * add test case * update CHANGELOG.md * fix CHANGELOG.md * fix test * fix test
DID
method-specific-id
s can include:
,.
,-
, and_
but these are not included in the denom regex. This PR adds them to the regex.DIDs also support percent encoded hex digits, but these are not added here, but could be included in a separate PR.
/cc @ig-shaun @jandrieu
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change