diff --git a/Cargo.lock b/Cargo.lock index 349e681386..feb8d2c1de 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2976,7 +2976,6 @@ dependencies = [ "aurora-engine-modexp", "blst", "c-kzg 1.0.0", - "cfg-if", "criterion", "k256", "once_cell", diff --git a/crates/precompile/Cargo.toml b/crates/precompile/Cargo.toml index 12f3adfb8a..af002f28a7 100644 --- a/crates/precompile/Cargo.toml +++ b/crates/precompile/Cargo.toml @@ -28,7 +28,6 @@ ripemd = { version = "0.1", default-features = false } sha2 = { version = "0.10", default-features = false } # modexp precompile aurora-engine-modexp = { version = "1.1", default-features = false } -cfg-if = "1" # Optional KZG point evaluation precompile c-kzg = { git = "https://github.com/brechtpd/c-kzg-4844", branch = "for-alpha7", default-features = false, optional = true, features = [ diff --git a/crates/precompile/src/secp256k1.rs b/crates/precompile/src/secp256k1.rs index 104fc2ab54..4450ce2d22 100644 --- a/crates/precompile/src/secp256k1.rs +++ b/crates/precompile/src/secp256k1.rs @@ -12,7 +12,7 @@ mod secp256k1_zk { use crate::Error; use revm_primitives::{alloy_primitives::B512, B256}; - pub fn ecrecover(sig: &B512, recid: u8, msg: &B256) -> Result { + pub(crate) fn ecrecover(sig: &B512, recid: u8, msg: &B256) -> Result { #[cfg(feature = "sp1-cycle-tracker")] println!("cycle-tracker-start: ecrecover"); let res = if zk_op::contains_operation(&ZkOperation::Secp256k1) { @@ -36,7 +36,7 @@ mod secp256k1 { use k256::ecdsa::{Error, RecoveryId, Signature, VerifyingKey}; use revm_primitives::{alloy_primitives::B512, keccak256, B256}; - pub fn ecrecover(sig: &B512, mut recid: u8, msg: &B256) -> Result { + pub(crate) fn ecrecover(sig: &B512, mut recid: u8, msg: &B256) -> Result { // parse signature let mut sig = Signature::from_slice(sig.as_slice())?; @@ -74,7 +74,7 @@ mod secp256k1 { // Silence the unused crate dependency warning. use k256 as _; - pub fn ecrecover(sig: &B512, recid: u8, msg: &B256) -> Result { + pub(crate) fn ecrecover(sig: &B512, recid: u8, msg: &B256) -> Result { let recid = RecoveryId::from_i32(recid as i32).expect("recovery ID is valid"); let sig = RecoverableSignature::from_compact(sig.as_slice(), recid)?;