Module hdk::hash

source · []
Expand description

For more details see hdi::hash.

Re-exports

pub use hdi::hash;

Functions

Hash an Action into an ActionHash.
Hash arbitrary bytes using BLAKE2b. This is the same algorithm used by holochain for typed hashes. Notably the output hash length is configurable.
Hash anything that implements TryInto<Entry>.
Hash arbitrary bytes using keccak256. This is the same algorithm used by ethereum and other EVM compatible blockchains. It is essentially the same as sha3 256 but with a minor difference in configuration that is enough to generate different hash outputs.
Hash arbitrary bytes using SHA3 256. This is the official NIST standard for 256 bit SHA3 hashes.
@todo - not implemented on the host
@todo - not implemented on the host