-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
engine-modexp
bug fixes and performance improvements with unusual e…
…xponents (#814) ## Description - Fixes a panic with empty exponent - Ensure correct result with zero exponent - Fix performance issues with exponents with large zero padding ## Performance / NEAR gas cost considerations The performance is increased for some cases (those with exponents with a large amount of leading zeroes) and remains the same for all other cases. ## Testing Fuzzing and tests added. ## How should this be reviewed ## Additional information --------- Co-authored-by: Oleksandr Anyshchenko <oleksandr.anyshchenko@aurora.dev>
- Loading branch information
1 parent
2e1f1a0
commit 0cfda46
Showing
2 changed files
with
44 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters