-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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
The documentation of toEthSignedMessageHash makes no sense for me #2545
Comments
In the master, and the latest beta, this was changed to |
@Amxx I think your change is useful but it does not answer the issue I raised! |
I believe the reason we implemented this using This was a long time ago, things may have changed. @vporton Can you confirm that it is now possible to produce signatures with a different length? If so, the issue for that is #890. |
up, as the "eth_sign" hyperlink is now dead, making the documentation even less clear |
https://docs.openzeppelin.com/contracts/3.x/api/cryptography
The documentation of toEthSignedMessageHash makes no sense for me: It argument is
bytes32 hash
and "This replicates the behavior of the eth_sign JSON-RPC method."But eth_sign JSON-RPC method accepts an arbitrary string and this string is recommended to be human-readable. So generally it cannot be like
bytes32
.The documentation needs to be updated.
The text was updated successfully, but these errors were encountered: