Module hash

Source

Modules§

generic_array
This crate implements a structure that can be used as a generic array type. Core Rust array types [T; N] can’t be used generically with respect to N, so for example this:

Structs§

GenericArray
Struct representing a generic array - GenericArray<T, N> works like [T; N]

Traits§

AsyncHash
Defines a method to compute the hash of this state as of a given TxnId
Digest
Convenience wrapper trait covering functionality of cryptographic hash functions with fixed output size.
Hash
Trait to compute a SHA-2 hash using the digest type D

Functions§

default_hash
Construct an empty hash
hash_stream
Hash a Stream
hash_try_stream
Hash a TryStream

Type Aliases§

Output
Output array of OutputSizeUser implementors.
Sha256
SHA-256 hasher.