Module hashmap

Module hashmap 

Source
Expand description

A deterministic HashMap for tally oracle programs without random hashing.

The standard std::collections::HashMap relies on randomized seeds, which are disallowed in tally oracle programs. This module provides DeterministicHasher and a HashMap alias that guarantees consistent, reproducible hashes without any randomness.

Structs§

DeterministicHasher
A hasher that always produces deterministic outputs by wrapping DefaultHasher.

Type Aliases§

HashMap
A HashMap type alias using DeterministicHasher to ensure consistent hash values.