Skip to content

Commit

Permalink
update with flexibility
Browse files Browse the repository at this point in the history
  • Loading branch information
s1na committed Sep 17, 2024
1 parent 2ee9fc2 commit 42d1249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/ethsimulatev1-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,4 +201,4 @@ When it comes to contract override behavior, specifically precompile override, t
1. As specified above to allow replacement of precompiles by EVM code and to allow those same precompiles to be relocated to another access for fallback behavior.
2. Allow users to pass in a set of pre-computed calls for an address, i.e. direct mapping of input to output.

The second approach has better UX for simple use-cases such as faking a signature via ecrecover. It also allows for getting the same gas usage as a real precompile execution. Nevertheless it imposes changes to the EVM interpreter code, which has been otherwise avoided, without enabling new features. Hence the spec proposes the first alternative.
The second approach has better UX for simple use-cases such as faking a signature via ecrecover. It also allows for getting the same gas usage as a real precompile execution. The simpler UX comes at cost of flexibility. Overriding with EVM code is general. It also imposes changes to the EVM interpreter code, which has been otherwise avoided, without enabling new features. Hence the spec proposes the first alternative.

0 comments on commit 42d1249

Please sign in to comment.