Appearance
Solidity API
EIP712
_see https://eips.ethereum.org/EIPS/eip-712_
EIP712_TYPE_HASH
solidity
bytes32 EIP712_TYPE_HASHcalculateDomainSeparator
solidity
function calculateDomainSeparator(bytes32 nameHash, bytes32 versionHash) internal view returns (bytes32 domainSeparator)calculate unique EIP-712 domain separator
name and version inputs are hashed as required by EIP-712 because they are of dynamic-length types implementation of EIP712Domain struct type excludes the optional salt parameter
Parameters
| Name | Type | Description |
|---|---|---|
| nameHash | bytes32 | hash of human-readable signing domain name |
| versionHash | bytes32 | hash of signing domain version |
Return Values
| Name | Type | Description |
|---|---|---|
| domainSeparator | bytes32 | domain separator |