Remove use of ethers_core::RlpStream

This commit is contained in:
dospore
2024-02-16 08:54:24 +10:00
parent 13956a0741
commit 44f24707c9
9 changed files with 147 additions and 50 deletions

View File

@@ -16,7 +16,8 @@ use hash_db::Hasher;
use types::Hash256;
pub fn keccak256(bytes: &[u8]) -> Hash256 {
Hash256::from(ethers_core::utils::keccak256(bytes))
let hash: [u8; 32] = alloy_primitives::utils::keccak256(bytes).into();
Hash256::from(hash)
}
/// Keccak hasher.