Skip to content

Commit

Permalink
remove scalar check in ec_mul
Browse files Browse the repository at this point in the history
  • Loading branch information
enitrat committed Sep 23, 2024
1 parent d60848b commit 2066e64
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions crates/evm/src/precompiles/ec_operations/ec_mul.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ pub impl EcMul of Precompile {

// Returns Option::None in case of error.
fn ec_mul(x1: u256, y1: u256, s: u256) -> Option<(u256, u256)> {
if s >= BN254_ORDER {
return Option::None;
}
if x1 >= BN254_PRIME || y1 >= BN254_PRIME {
return Option::None;
}
Expand Down

0 comments on commit 2066e64

Please sign in to comment.