std.hash¶
Accepted
Accepted as a V1 namespace skeleton. Hashing APIs are deferred.
std.hash owns hashing contracts, hasher state/interface types, and concrete hash algorithms.
Standard-library contracts build on the prelude contract model, but no core syntax lowers to them and the compiler does not need them to type-check ordinary programs.
Expected Contents¶
- the
Hashcontract Hasherstate/interface types- concrete hash algorithms
- helpers for feeding primitive, slice, and aggregate values into hashers
- hash-policy utilities used by hash maps and sets
Hashing belongs in std, including the Hash contract, Hasher state/interface types, and concrete hash algorithms. Hashing is important for collections, but no core syntax lowers to it and the compiler does not need it to type-check ordinary programs.
V1 Boundary¶
V1 does not accept a public Hash contract, Hasher type, hash algorithm, or hash-map support API. Full hashing design is deferred to CEP-0054: Standard Utility APIs.