Available on crate feature
internal only.Expand description
The core Hash type, which is used internally to represent hashes, the
GetHash trait for computing and caching hashes of things, and the CachedHash type, which
is used internally for lazy evaluation of hashes.
Structs§
- Cached
Hash - An
Mutex-based cache for hashes, to prevent repeated computation. - Forgotten
- A version tracking when a particular piece of the tree was explicitly forgotten.
- Hash
- The hash of an individual [
Commitment] or internal node in the tree. - Option
Hash - A representation of
Option<Hash>without the tag bytes required byOption, because we know that no validHashwill be equal to[u64::MAX; 4], since the modulus forCommitmentis too small.
Statics§
- DOMAIN_
SEPARATOR - The domain separator used for leaves in the tree, and used as a base index for the domain
separators of nodes in the tree (nodes get a domain separator of the form
DOMAIN_SEPARATOR + HEIGHT).