Module hdk::hash

source · []
Expand description

Re-exports

pub use holochain_deterministic_integrity::hash;

Functions

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 a Header into a HeaderHash.

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