From 2ef7371f7a4eefe7478cad43cb4922efaa12876a Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Wed, 25 Jun 2025 10:40:24 +0200 Subject: Use `rayon` for parallelization --- src/hasher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/hasher.rs') diff --git a/src/hasher.rs b/src/hasher.rs index 845127f..18a65b4 100644 --- a/src/hasher.rs +++ b/src/hasher.rs @@ -5,7 +5,7 @@ use sha2::Digest; /// A trait representing a generic hash function. /// /// This allows the Merkle tree to use any hash function that conforms to this interface. -pub trait Hasher { +pub trait Hasher: Send + Sync { /// Hashes a sequence of bytes and returns the resulting hash as a hexadecimal string. fn hash(&self, input: &[u8]) -> String; } -- cgit v1.2.3-71-g8e6c