pub fn eth_data_hash(data: Bytes) -> H256
Expand description

Returns a eth_sign-compatible hash of data to sign. The data is prepended with special message to prevent malicious DApps from using the function to sign forged transactions.