Skip to content

Computes the canonical EIP-712 digest for a { domain, types, primaryType, message } payload. The result is what an EVM wallet signs via personalsign on the…

hashTypedData(typed): Uint8Array

Defined in: packages/bitbadgesjs-sdk/src/eip712/hash.ts:30

Computes the canonical EIP-712 digest for a { domain, types, primaryType, message } payload. The result is what an EVM wallet signs via personal_sign on the digest, or equivalently what eth_signTypedData_v4 derives internally.

Parameters

typed

EIP712TypedData

Returns

Uint8Array

Edit this page on GitHub