Module coins_core::hashes
source · [−]Expand description
Holds utilites for working with cryptographic digests, and disambiguating digests via marker traits.
We want to wrap hashes in marked newtypes in order to prevent type-confusion between TXIDs, sighashes, and other digests with the same length.
Structs
A Digest
implementation that performs Bitcoin style double-sha256
Struct representing a generic array - GenericArray<T, N>
works like [T; N]
A Digest
implementation that performs Bitcoin style double-sha256
A bitcoin-style Hash160
A Digest
implementation that performs Bitcoin style double-sha256
A bitcoin-style Hash256
Traits
Convinience wrapper trait covering functionality of cryptographic hash functions with fixed output size.
A marked digest
Convenience interface for hash function outputs, particularly marked digest outputs
Type Definitions
Output of a Digest function
RIPEMD-160 hasher.
SHA-3-256 hasher state.
SHA-256 hasher.