aurora-is-near / aurora-engine

⚙️ Aurora Engine implements an Ethereum Virtual Machine (EVM) on the NEAR Protocol.
https://doc.aurora.dev/develop/compat/evm
325 stars 78 forks source link

`engine-modexp` bug fixes and performance improvements #809

Closed guidovranken closed 1 year ago

guidovranken commented 1 year ago

Description

This fixes the following issues with engine-modexp:

Performance / NEAR gas cost considerations

The performance of modular exponentiation with even modulus is improved. Performance remains the same for odd modulus.

Testing

Extensive fuzz testing, was was also the method used to detect the issues that this PR addresses.

How should this be reviewed

Additional information

joshuajbouw commented 1 year ago

I believe the cargo fmt is failing due to the use of nightly cargo fmt check in the CI.

aleksuss commented 1 year ago

@joshuajbouw no. We have pretty old nightly in our CI so it should be fixed, I guess.