Skip to main content

alg_simhash

Function alg_simhash 

Source
pub fn alg_simhash(hash_digests: &[impl AsRef<[u8]>]) -> IsccResult<Vec<u8>>
Expand description

Compute a SimHash from a sequence of equal-length hash digests.

Validates that all digests have equal length, then delegates to alg_simhash_inner. Returns Err(IsccError::InvalidInput) if digest lengths are mismatched.