Skip to main content
edited tags
Link
Paul Razvan Berg
  • 18.7k
  • 6
  • 79
  • 148
Became Hot Network Question
Source Link
Origami
  • 156
  • 4

Why aren't more common algorithms done as precompiles?

I've been interested in precompiles recently and it seems asinine that things such as ecrecover, hash algorithms, etc. are all written as precompiles under the hood of the EV, however simple binary search tree algorithms, sorting and searching etc are not.

It's extremely un-practical to write most algorithms in solidity so most of the code is just complex getting and setting values for the most part.

Is anyone aware of any EIP attempting to accomplish this / move more of the commonly used algos on the client side.