Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Math API ecrecover and ripemd160 extension #4380

Merged
merged 163 commits into from
Jun 30, 2021

Conversation

joshuajbouw
Copy link
Member

@joshuajbouw joshuajbouw commented Jun 20, 2021

Summary

As a successor to #3954, this PR is meant to speed up and lower the cost of the Aurora EVM contract cost by adding several new methods to the nearcore Math API logic. Notably, ecrecover is extremely important as it is the most expensive method.

Todo

  • Removed blake2
  • Rework ecrecover to use near-crypto and not a new lib
  • Remove protocol_feature_evm conditional compilation which were added
  • Add protocol_feature_math_extension feature
  • Params estimator

References:

core/crypto/src/signature.rs Outdated Show resolved Hide resolved
runtime/near-vm-logic/src/logic.rs Outdated Show resolved Hide resolved
@joshuajbouw
Copy link
Member Author

joshuajbouw commented Jun 29, 2021

Provided CI is good to go, I just need the params estimator numbers, and good to push in. @nearmax @bowenwang1996

Copy link
Collaborator

@bowenwang1996 bowenwang1996 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just need the new fees :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet