Skip to main content

EIP712Utils

Git Source ↗

Includes functionality for calculating EIP712 ↗ hashes.

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

NameTypeDescription
namestringThe name of the domain
verifyingContractaddressThe address of the verifying contract

Returns

NameTypeDescription
<none>bytes32The hash of the EIP712 typed data