Module hash

Module hash 

Source
Expand description

this implements various hashing primitives and utilities for cryptographic operations.

§Features

  • blake3: enables the blake3 hashing algorithm.

Modules§

h160
this modules implements the H160 type, which is a 20-byte hash output.
h256
this modules implements the H256 type, which is a 32-byte hash output.
traits
this module defines various traits for the hash module.
types
this module defines additional types for the hash module.

Structs§

H160
A SHA160 hash type.
H256
A SHA256 hash.

Traits§

Hash
The Hash trait establishes a common interface for hashing types.
Hashable
Hasher
A Hasher defines a common interface for defining specific hashing algorithm.
RawHash
RawHash defines a common interface for raw hash types.
SizedHash
SizedHash extends RawHash to include a constant size for the hash output.

Type Aliases§

GenericHash
the GenericHash type alias defines a standard hash format for the crate
GenericHashOutput
a type alias for a generic hash output