Crate essential_hash

Source
Expand description

A minimal crate containing Essential’s hash function and associated pre-hash generic serialization implementation serialize based on postcard.

Modules§

contract_addr
A small collection of helper functions to assist in the calculation of an contract’s content address.
solution_set_addr
A small collection of helper functions to assist in the calculation of an solution’s content address.

Traits§

Address
Standardized trait for creating content addresses for types using the correct constructors.

Functions§

content_addr
Shorthand for hashing the given value in order to produce its content address.
hash
Hash data using SHA-256.
hash_bytes
Hash bytes without serializing them.
hash_bytes_iter
Hash bytes without serializing them.
hash_words
Hash words in the same way that Crypto::Sha256 does.
serialize
Serialize data for hashing using postcard.