-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Description
Currently, Scroll's version of the ecPairing precompile limits the input to at most 4 pairs:
scroll-revm/src/precompile/bn128.rs
Lines 45 to 49 in 0c222b9
| fn bernoulli_run(input: &[u8], gas_limit: u64) -> PrecompileResult { | |
| if input.len() > N_PAIRING_PER_OP * N_BYTES_PER_PAIR { | |
| return Err(PrecompileError::Other("BN128PairingInputOverflow: input overflow".into())); | |
| } | |
| run_pair(input, ISTANBUL_PAIR_PER_POINT, ISTANBUL_PAIR_BASE, gas_limit) |
From Feynman, we should remove this limit.