EIP712Utils
Includes functionality for calculating EIP712 hashes
State Variables
_domainTypeHash
bytes32 private constant _domainTypeHash =
keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)")
_versionHash
bytes32 private constant _versionHash = keccak256("1")
Functions
computeDomainSeparator
Computes the hash of the EIP712 typed data
This function is used to compute the hash of the EIP712 typed data
function computeDomainSeparator(string memory name, address verifyingContract) external view returns (bytes32);
Parameters
| Name | Type | Description |
|---|---|---|
name | string | The name of the domain |
verifyingContract | address | The address of the verifying contract |
Returns
| Name | Type | Description |
|---|---|---|
<none> | bytes32 | The hash of the EIP712 typed data |