Module ethcontract_common::hash[][src]

Expand description

Keccak256 hash utilities.

Functions

function_selector

Calculate 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.

keccak256

Perform a Keccak256 hash of data and return its 32-byte result.

Type Definitions

H32

A 32-bit prefix of a standard 256-bit Keccak hash.