Skip to content

Solidity API

EIP712

_see https://eips.ethereum.org/EIPS/eip-712_

EIP712_TYPE_HASH

solidity
bytes32 EIP712_TYPE_HASH

calculateDomainSeparator

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

NameTypeDescription
nameHashbytes32hash of human-readable signing domain name
versionHashbytes32hash of signing domain version

Return Values

NameTypeDescription
domainSeparatorbytes32domain separator