-
Notifications
You must be signed in to change notification settings - Fork 11.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Move ECDSA
message hash methods to its own MessageHashUtils
library
#4430
Move ECDSA
message hash methods to its own MessageHashUtils
library
#4430
Conversation
🦋 Changeset detectedLatest commit: d976a6f 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 |
Note that the Some other options could be:
|
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.
Files to this file doesn't feel right. Can you double check ?
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.
I merge master with:
git merge master -X theirs
Then applied the patch with bash scripts/upgradeable/patch-apply.sh
, solved conflicts (ECDSA
vs MessageHashUtils
import in EIP-712), and saved the patch with bash scripts/upgradeable/patch-save.sh
.
Should be fine but I did the same conflict resolution before, let me know if I'm missing something.
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.
- Minor comments on the test
- The patch file doesn't feel right
otherwize its good
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: Francisco <fg@frang.io>
Co-authored-by: Francisco <fg@frang.io>
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.
The patch looks good to me. The changes I see are to commit hashes and line numbers, as well as context that has changed.
* hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method. | ||
* | ||
* NOTE: The `hash` parameter is intended to be the result of hashing a raw message with | ||
* keccak256, althoguh any bytes32 value can be safely used because the final digest will |
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.
"althoguh" -> typo; I think for such a fix no need for a PR overhead and one of you maintainers can quickly fix it in main
;-): cc: @ernestognw, @frangio, @Amxx
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.
As part of #4318, we agreed that the
ECDSA
library can just focus onrecovery
methods, whereas a new library for ECDSA message hashes would be a suitable place for adding support to new message schemes.It includes some updates to the documentation.
PR Checklist
npx changeset add
)