diff options
| author | Santo Cariotti <santo@dcariotti.me> | 2025-06-25 08:40:24 +0000 |
|---|---|---|
| committer | Santo Cariotti <santo@dcariotti.me> | 2025-06-25 08:40:24 +0000 |
| commit | 2ef7371f7a4eefe7478cad43cb4922efaa12876a (patch) | |
| tree | 44b58583caa1ea663f75c3c6c0fcdb7b265a6f88 /src/hasher.rs | |
| parent | c402255ea5ef6510a583b79e49f4246dc618c362 (diff) | |
Use `rayon` for parallelization
Diffstat (limited to 'src/hasher.rs')
| -rw-r--r-- | src/hasher.rs | 2 |
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; } |
