mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-09 15:28:01 -05:00
chore: add link to SHA256 article (#16129)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@@ -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 - <https://en.wikipedia.org/wiki/SHA-2>
|
||||
pub(crate) fn sha256(data: &[u8]) -> B256 {
|
||||
B256::from(Sha256::digest(data).as_ref())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user