Closed lempire123 closed 1 year ago
In aurora-engine, the ecrecover precompile panics if provided signature length is not exactly 65
aurora-engine
ecrecover
Panics will stop execution of the executable and hence panicking macros such as assert_eq! should be avoided in the release code.
assert_eq!
Gracefully handle the invalid signature length condition by returning an ExitError , instead of panicking.
ExitError
In
aurora-engine
, theecrecover
precompile panics if provided signature length is not exactly 65Panics will stop execution of the executable and hence panicking macros such as
assert_eq!
should be avoided in the release code.Gracefully handle the invalid signature length condition by returning an
ExitError
, instead of panicking.