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.
- Host
Functions - 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.