Module ethcontract_common::hash
source · Expand description
Keccak256 hash utilities.
Functions
- Calculates the function selector as per the contract ABI specification. This is definied as the first 4 bytes of the Keccak256 hash of the function signature.
- Perform a Keccak256 hash of data and return its 32-byte result.
Type Aliases
- A 32-bit prefix of a standard 256-bit Keccak hash.