-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Improve gas efficiency in ECDSA #3853
Improve gas efficiency in ECDSA #3853
Conversation
I agree that |
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.
Thanks!
I've never seen it before, but it's a good. Thank you letting me know about your good work. |
@frangio Hello? Should I do anything more for merging? |
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.
IMO this is mostly good. Should target 4.9
🦋 Changeset detectedLatest commit: c24ead1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
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.
Not sure why we have changes to lib/forge-std
in this PR.
Maybe this PR was created before #3885? |
Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
at some point it was "discarded" during a merge of master into this. I cherry picked the corresponding commit to fix things. |
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
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.
Very nice thank you!
Congrats, your important contribution to this open-source project has earned you a GitPOAP! GitPOAP: 2023 OpenZeppelin Contracts Contributor: Head to gitpoap.io & connect your GitHub account to mint! Learn more about GitPOAPs here. |
Fixes #3853
This PR reduces gas usage of
toTypedDataHash
toEthSignedMessageHash(bytes32)
toEthSignedMessageHash(bytes)
.Here are some results:
PR Checklist