summaryrefslogtreecommitdiffstats
path: root/src/hasher.rs
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2025-06-25 08:40:24 +0000
committerSanto Cariotti <santo@dcariotti.me>2025-06-25 08:40:24 +0000
commit2ef7371f7a4eefe7478cad43cb4922efaa12876a (patch)
tree44b58583caa1ea663f75c3c6c0fcdb7b265a6f88 /src/hasher.rs
parentc402255ea5ef6510a583b79e49f4246dc618c362 (diff)
Use `rayon` for parallelization
Diffstat (limited to 'src/hasher.rs')
-rw-r--r--src/hasher.rs2
1 files changed, 1 insertions, 1 deletions
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;
}