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§

  • A small collection of helper functions to assist in the calculation of a block’s content address.
  • A small collection of helper functions to assist in the calculation of an contract’s content address.
  • A small collection of helper functions to assist in the calculation of an solution’s content address.

Traits§

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

Functions§

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