diff --git a/crates/vm/levm/src/precompiles.rs b/crates/vm/levm/src/precompiles.rs index 443da76e87a..802f8851a0e 100644 --- a/crates/vm/levm/src/precompiles.rs +++ b/crates/vm/levm/src/precompiles.rs @@ -782,7 +782,7 @@ pub fn ecmul(calldata: &Bytes, gas_remaining: &mut u64, _fork: Fork) -> Result Result { let x = ark_bn254::Fq::from_be_bytes_mod_order(&point.0.to_big_endian()); @@ -813,7 +813,7 @@ pub fn bn254_g1_mul(point: G1, scalar: U256) -> Result { Ok(Bytes::from(out)) } -#[cfg(any(feature = "sp1", feature = "risc0"))] +#[cfg(feature = "sp1")] #[inline] pub fn bn254_g1_mul(g1: G1, scalar: U256) -> Result { use substrate_bn::{AffineG1, Fq, Fr, G1, Group}; @@ -832,11 +832,6 @@ pub fn bn254_g1_mul(g1: G1, scalar: U256) -> Result { let scalar = Fr::from_slice(&scalar.to_big_endian()).map_err(|_| PrecompileError::ParsingInputError)?; - #[cfg(feature = "risc0")] - // RISC0's substrate-bn patch does not implement Mul for AffineG1, but - // it does implement Mul for G1. So we convert AffineG1 to G1 first. - let result = G1::from(g1) * scalar; - #[cfg(feature = "sp1")] let result = g1 * scalar; let mut x_bytes = [0u8; 32];