summaryrefslogtreecommitdiffstats
path: root/src/hasher.rs
diff options
context:
space:
mode:
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;
}