Type Alias mz_storage::upsert::KeyHash

source ·
type KeyHash = Sha256;
Expand description

The hash function used to map upsert keys. It is important that this hash is a cryptographic hash so that there is no risk of collisions. Collisions on SHA256 have a probability of 2^128 which is many orders of magnitude smaller than many other events that we don’t even think about (e.g bit flips). In short, we can safely assume that sha256(a) == sha256(b) iff a == b.

Aliased Type§

struct KeyHash { /* private fields */ }