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

Feat(precompiles): Abstract modexp impl #769

Closed birchmd closed 1 year ago

birchmd commented 1 year ago

Description

This makes the modexp precompile take a generic type parameter for the implementation of the algorithm. This allows the standalone engine (or other downstream users of Aurora Engine) to select their own modexp implementation. The implementation used for our Wasm contract remains unchanged (the generic is filled with a type using the implementation we already had).

Performance / NEAR gas cost considerations

N/A

Testing

N/A

birchmd commented 1 year ago

Closing in favour of https://github.com/aurora-is-near/aurora-engine/pull/770