Skip to main content
2 of 2
edited tags
Paul Razvan Berg
  • 18.7k
  • 6
  • 79
  • 148

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.

Origami
  • 156
  • 4