referrerpolicy=no-referrer-when-downgrade

Module hashing

Source
Expand description

All hashing related components.

This is already part of the main prelude.

Structs§

BlakeTwo256
Blake2-256 Hash implementation.
H160
Fixed-size uninterpreted hash type with 20 bytes (160 bits) size.
H256
Fixed-size uninterpreted hash type with 32 bytes (256 bits) size.
H512
Fixed-size uninterpreted hash type with 64 bytes (512 bits) size.
Keccak256
Keccak-256 Hash implementation.
U256
Little-endian large integer type 256-bit unsigned integer.
U512
Little-endian large integer type 512-bits unsigned integer.

Traits§

Hash
Abstraction around hashing

Functions§

blake2_64
Do a Blake2 64-bit hash and return result.
blake2_128
Do a Blake2 128-bit hash and return result.
blake2_256
Do a Blake2 256-bit hash and return result.
blake2_512
Do a Blake2 512-bit hash and return result.
blake2_512_into
Do a Blake2 512-bit hash and place result in dest.
keccak_256
Do a keccak 256-bit hash and return result.
keccak_512
Do a keccak 512-bit hash and return result.
sha2_256
Do a sha2 256-bit hash and return result.
twox_64
Do a XX 64-bit hash and return result.
twox_64_into
Do a XX 64-bit hash and place result in dest.
twox_128
Do a XX 128-bit hash and return result.
twox_256
Do a XX 256-bit hash and return result.
twox_128_into
Do a XX 128-bit hash and place result in dest.
twox_256_into
Do a XX 256-bit hash and place result in dest.