[][src]Module mohan::hash

Various Sized Blake2b hash functions Hash Functions

Re-exports

pub use blake2b_simd as blake2b;

Structs

H256

A hash to uniquely (or close enough) identify one of the main blockchain constructs. Used pervasively for blocks, transactions and outputs.

HashWriter

Serializer that outputs a hash of the serialized object

Traits

DefaultHashable

Implementing this trait enables the default hash implementation

Hashed

A trait for types that have a canonical hash

Functions

blake256

Blake256 hashes data without key at 32 bytes blake2b

blake256q

Paranoid Hash: b256q blake256(blake256(blake384(blake384(data))))

hmac_256

Blake2b based Message Authentication Code @ 32 bytes