referrerpolicy=no-referrer-when-downgrade

Module hashing

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.
HostFunctions
Provides implementations for the extern host functions.
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_128
Conduct a 128-bit Blake2 hash.
blake2_256
Conduct a 256-bit Blake2 hash.
keccak_256
Conduct a 256-bit Keccak hash.
keccak_512
Conduct a 512-bit Keccak hash.
sha2_256
Conduct a 256-bit Sha2 hash.
twox_64
Conduct two XX hashes to give a 64-bit result.
twox_128
Conduct two XX hashes to give a 128-bit result.
twox_256
Conduct four XX hashes to give a 256-bit result.