-
Notifications
You must be signed in to change notification settings - Fork 106
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
Find a better mp-int library to handle costly large integer calculation. #1584
Labels
Comments
In my experience if you want smth optimised for your particular problem, the best is to do it yourself. |
This implementation offers a 80x speedup over Stint on Uint256 modular exponentiation (and is generic to any runtime size): |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Running 9 modexp test of eth test suite, the result is:
Find a better mp-int library that can handle arbitrary input length and have modpow/modexp optimization.
And not limited to modexp precompile only, maybe can be extended to other area where stint is slow.
The text was updated successfully, but these errors were encountered: