48: Function Signature Hash
The following code snippet creates a signature hash using the keccak256 hashing algorithm.
contract SignHash {
function signHash(string memory message)
public view returns (bytes32) {
return keccak256(abi.encodePacked(message));
}
}string memory message : "getBalance(address)"
Function Name: getBalance
Parameters: address _account
Function Signature: 0x70a08231
string memory message : "transfer(address,uint256)"
Function Name: transfer
Parameters: address _to, uint256 _value
Function Signature: 0xa9059cbbThe following code snippet creates a signature hash from a transaction.
Last updated