-
-
Notifications
You must be signed in to change notification settings - Fork 957
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: add ability to hash data representation of message #610
Conversation
🦋 Changeset detectedLatest commit: 6fc2f08 The changes in this PR will be included in the next version bump. 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 |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Size Change: +454 B (0%) Total Size: 254 kB
ℹ️ View Unchanged
|
Codecov Report
@@ Coverage Diff @@
## main #610 +/- ##
==========================================
- Coverage 99.92% 99.91% -0.02%
==========================================
Files 259 259
Lines 24151 24173 +22
Branches 2006 2013 +7
==========================================
+ Hits 24134 24153 +19
- Misses 17 20 +3
|
this is great! thanks for tackling this so quickly |
Co-authored-by: moldy <[email protected]>
d87ab3a
to
0d00189
Compare
* feat: add ability to hash data representation of message Co-authored-by: moldy <[email protected]> * chore: changeset * feat: ethers adapter --------- Co-authored-by: moldy <[email protected]>
PR-Codex overview
This PR adds the ability to hash data representation of messages in sign, verify, and recover functions. It also updates related functions to accept a
SignableMessage
type instead of a string.Detailed summary
SignableMessage
type tomisc.ts
raw
attribute toSignableMessage
signMessage
,verifyMessage
, andrecoverMessageAddress
to acceptSignableMessage
hashMessage
to acceptSignableMessage
hashMessage
verifyMessage
to acceptSignableMessage
and adds example for usingraw
attribute in verificationethersWalletToAccount
to supportSignableMessage
insignMessage
signMessage
to supportSignableMessage
and adds example for usingraw
attribute in signingSignableMessage
and testraw
attribute