Developer Guide

utils/sign-typed-data-utils

Index

Interfaces

Type aliases

Functions

Type aliases

EIP712ObjectValue

Ƭ EIP712ObjectValue: string | number | EIP712Object

Defined in contractkit/src/utils/sign-typed-data-utils.ts:14

Functions

generateTypedDataHash

generateTypedDataHash(typedData: EIP712TypedData): Buffer

Defined in contractkit/src/utils/sign-typed-data-utils.ts:32

Generates the EIP712 Typed Data hash for signing

Parameters:

Name

Type

Description

typedData

EIP712TypedData

An object that conforms to the EIP712TypedData interface

Returns: Buffer

A Buffer containing the hash of the typed data.