Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ecadd tests * ecmul tests * Add test utils * Add test suit generator * Remove old tests * Update tests * Fix ecadd * Fix ecmul * Handle modexp tests * Add modexp tests * Update call helper function * Fix helper function * Fix test utils * Improve ecmul precompile * Add test helper * Add python script to test double and add algorithm (#13) * Add montgomery reduction algorithm * Add Rust playground crate * Update montgomery reduction script * Add Montgomery reduction precompile * ecAdd refactor * Montgomery fix * Add montgomery inv & modexp * Fix N' * Fix REDC * Fix Montgomery modular inverse * Remove comments * Fix prints * Change to bytes comparison instead of decoded output * Patch tests with extra check for errors in ecadd and ecmul * Add EOL * Update modexp precompile * Finish optimizing ecAdd & ecMul * Implement optimized montgomery invmod * modexpGasCost * Cleanup * Last version of ecAdd, ecMul & modexp * Fix modexp tests calldata * Fix modexp tests to pass with actual vm state * Update Montgomery precompile * Add EOL --------- Co-authored-by: IAvecilla <[email protected]> Co-authored-by: Nacho Avecilla <[email protected]>
- Loading branch information