diff --git a/crates/net/ecies/src/util.rs b/crates/net/ecies/src/util.rs index cffd1f19de..035b7576c8 100644 --- a/crates/net/ecies/src/util.rs +++ b/crates/net/ecies/src/util.rs @@ -4,7 +4,7 @@ use alloy_primitives::B256; use hmac::{Hmac, Mac}; use sha2::{Digest, Sha256}; -/// Hashes the input data with SHA256. +/// Hashes the input data with SHA256 - pub(crate) fn sha256(data: &[u8]) -> B256 { B256::from(Sha256::digest(data).as_ref()) }