Module sp_core::hashing[][src]

Expand description

Hashing functions.

This module is gated by full-crypto feature. If you intend to use any of the functions defined here within your runtime, you should most likely rather use sp_io::hashing instead, unless you know what you’re doing. Using sp_io will be more performant, since instead of computing the hash in WASM it delegates that computation to the host client.

Functions

Do a Blake2 64-bit hash and return result.

Do a Blake2 64-bit hash and place result in dest.

Do a Blake2 128-bit hash and return result.

Do a Blake2 128-bit hash and place result in dest.

Do a Blake2 256-bit hash and return result.

Do a Blake2 256-bit hash and place result in dest.

Do a Blake2 512-bit hash and return result.

Do a Blake2 512-bit hash and place result in dest.

Do a keccak 256-bit hash and return result.

Do a keccak 512-bit hash and return result.

Do a sha2 256-bit hash and return result.

Do a XX 64-bit hash and return result.

Do a XX 64-bit hash and place result in dest.

Do a XX 128-bit hash and return result.

Do a XX 128-bit hash and place result in dest.

Do a XX 256-bit hash and return result.

Do a XX 256-bit hash and place result in dest.