From b1b640ae8bd8d2ed7c128cb3f90e3e56226a5560 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sun, 21 Feb 2021 15:24:30 +0100 Subject: rename hash() to sha256sum(), we might want to change it at some places --- src/util/data.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util') diff --git a/src/util/data.rs b/src/util/data.rs index 8f976f71..657467ba 100644 --- a/src/util/data.rs +++ b/src/util/data.rs @@ -77,7 +77,7 @@ impl FixedBytes32 { pub type UUID = FixedBytes32; pub type Hash = FixedBytes32; -pub fn hash(data: &[u8]) -> Hash { +pub fn sha256sum(data: &[u8]) -> Hash { let mut hasher = Sha256::new(); hasher.input(data); let mut hash = [0u8; 32]; -- cgit v1.2.3