Module hashers

Module hashers 

Source
Expand description

Hash function utilities for consistent performance across platforms

Provides ahash-based hashers optimized for ASS-RS use cases with DoS resistance and consistent performance across platforms including WASM.

§Features

  • DoS-resistant hashing via ahash with random seeds
  • WASM-compatible implementation
  • no_std support when needed
  • Deterministic hashing for testing when enabled

Structs§

HashConfig
Configuration for hash-related performance tuning

Functions§

create_hash_map
Create a new HashMap with optimized hasher for ASS-RS use cases
create_hash_map_with_capacity
Create a new HashMap with specific capacity and optimized hasher
create_hasher
Create a hasher instance for manual hashing operations
hash_value
Hash a single value using the optimized hasher