Expand description
All hashing related components.
This is already part of the main prelude
.
Structs§
- Blake
Two256 - 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
.