Type Definition ssvm_evmc_sys::evmc_get_code_hash_fn[][src]

type evmc_get_code_hash_fn = Option<unsafe extern "C" fn(context: *mut evmc_host_context, address: *const evmc_address) -> evmc_bytes32>;

Get code hash callback function.

This callback function is used by a VM to get the keccak256 hash of the code stored in the account at the given address. For existing accounts not having a code, this function returns keccak256 hash of empty data.

@param context The pointer to the Host execution context. @param address The address of the account. @return The hash of the code in the account or null bytes if the account does not exist.