Function hash_eq
Source pub fn hash_eq(hash1: &[u8; 32], hash2: &[u8; 32]) -> bool
Expand description
Compare two 32-byte hashes for equality
Uses SIMD (AVX2) when available for faster comparison, otherwise falls back
to standard byte-by-byte comparison.
§Arguments
hash1 - First hash to compare
hash2 - Second hash to compare
§Returns
true if hashes are equal, false otherwise