Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Add ECDSA#toEthSignedMessageHash for bytes type #890
Comments
|
For |
|
@shrugs usually
|
|
@frangio awesome |
|
@frangio this code is not yet included in the latest release. I am waiting for it to use in https://github.com/bitclave/Feeless |
|
Update: we already have |
|
Note that signed data should always be a hash, since signatures can be faked for arbitrary data. This helper would still be safe in that sense because, even if the underlying |


The
ECDSAcontract has a functiontoEthSignedMessage(bytes32), but we should have a function that works for any length of abytesarray:Where
uintToBytesis implemented from an ideally MIT-licensed project with appropriate attribution.