You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Add accout.signRaw function to sign a message without prefix (#7346)
* workable code and test
* refine comments and docs
* add parallel test back
* using default value instead of ?
* update changelog
* update changelog
* remove wrong doc
* update package changelog
* Update CHANGELOG.md
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2772,6 +2772,10 @@ If there are any bugs, improvements, optimizations or any new feature proposal f
2772
2772
2773
2773
### Added
2774
2774
2775
+
#### web3-eth-accounts
2776
+
2777
+
-`hashMessage` now has a new optional param `skipPrefix` with a default value of `false`. A new function `signRaw` was added to sign a message without prefix. (#7346)
Copy file name to clipboardExpand all lines: packages/web3-eth-accounts/CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -184,3 +184,7 @@ Documentation:
184
184
- Revert `TransactionFactory.registerTransactionType` if there is a version mistatch between `web3-eth` and `web3-eth-accounts` and fix nextjs problem. (#7216)
185
185
186
186
## [Unreleased]
187
+
188
+
### Added
189
+
190
+
-`hashMessage` now has a new optional param `skipPrefix` with a default value of `false`. A new function `signRaw` was added to sign a message without prefix. (#7346)
* @param prefixed - (default: false) If the last parameter is true, the given message will NOT automatically be prefixed with `"\\x19Ethereum Signed Message:\\n" + message.length + message`, and assumed to be already prefixed.
424
+
* @param prefixed - (default: false) If the last parameter is true, the given message will NOT automatically be prefixed with `"\\x19Ethereum Signed Message:\\n" + message.length + message`, and assumed to be already prefixed and hashed.
384
425
* @returns The Ethereum address used to sign this data
0 commit comments