Add ECDSA#toEthSignedMessageHash for bytes type #890
Labels
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 |
|
Thanks :D |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


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.The text was updated successfully, but these errors were encountered: