aurora-is-near / aurora-engine

⚙️ Aurora Engine implements an Ethereum Virtual Machine (EVM) on the NEAR Protocol.
https://doc.aurora.dev/develop/compat/evm
325 stars 78 forks source link

Fix: Precompile panics on signature with invalid length #720

Closed lempire123 closed 1 year ago

lempire123 commented 1 year ago

In aurora-engine, the ecrecover precompile panics if provided signature length is not exactly 65

Panics 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.