Skip to main content

Module eip712

Module eip712 

Source
Expand description

EIP-712 Typed Structured Data decoder.

Parses eth_signTypedData_v4 JSON payloads into strongly-typed Rust structures.

EIP-712 defines a way to hash and sign typed structured data in a human-readable way. The JSON format has three top-level keys:

  • types — struct type definitions (including EIP712Domain)
  • primaryType — the name of the root type being signed
  • domain — domain separator values
  • message — the actual data being signed

§Reference

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

Structs§

Eip712Parser
Parser for EIP-712 JSON payloads.
Eip712TypeField
A single field within an EIP-712 type definition.
TypedData
A parsed EIP-712 typed data payload (eth_signTypedData_v4 format).

Enums§

TypedValue
A value in typed data — may be primitive or nested struct.