ERC-712: Typed structured data hashing and signing
ERC-712 introduces a standardized method for hashing and signing complex, typed structured data within the Ethereum ecosystem. Before this standard, signing arbAbstract
ERC-712 introduces a standardized method for hashing and signing complex, typed structured data within the Ethereum ecosystem. Before this standard, signing arbitrary data required users to hash and sign opaque byte arrays, which lacked human readability and context. ERC-712 solves this by requiring a domain separator and a schema definition, ensuring that signatures are context-aware and verifiable against specific smart contracts or chains. This mechanism significantly improves user security by allowing wallet interfaces to parse the structured data, enabling users to understand exactly what they are signing before granting approval. The standard provides a formal specification for how domain descriptors and typed data are encoded, hashed (often using Keccak-256), and then signed using ECDSA or other signature schemes. Its implementation has become foundational for off-chain signaling, gasless transactions, and complex permit-based approvals in decentralized finance (DeFi). By bridging the gap between raw data and human-understandable information, ERC-712 enhances the usability and trustworthiness of dapp interactions, effectively reducing the risk of blind signing in complex smart contract operations. Authors: Remco Bloemen, Vikas Dhillon, Dan Finlay Publication: Ethereum Improvement Proposals Publication date: 2019-01-01Key findings
- Enables secure and human-readable signing of structured data in Ethereum applications.
- Prevents signature replay attacks across different chains or dapps via domain separators.
- Facilitates improved wallet UX by providing structure for transaction verification.
- Standardizes the serialization and signing processes for typed data structures.
Citation
Remco Bloemen, Vikas Dhillon, Dan Finlay (2019). ERC-712: Typed structured data hashing and signing. Ethereum Improvement Proposals. https://eips.ethereum.org/EIPS/eip-712Related knowledge
- 2025 Security Lessons: Hacks, Exploits & the Push for Better Audits — article
- 2025 Security Lessons: Hacks, Exploits & the Push for Better Audits — related-article
- Decentralized Identity: How Blockchain is Solving the Digital Identity Crisis — article
- Decentralized Identity: How Blockchain is Solving the Digital Identity Crisis — related-article
- Entropy — glossary
- Entropy — related-glossary
- From Hype to Reality: The Rise of Quantum-Resistant Cryptography — article
- From Hype to Reality: The Rise of Quantum-Resistant Cryptography — related-article
- Gas Price — glossary
- Gas Price — related-glossary
- Quantum Progress in 2026: Are We Approaching the Security Cliff? — article
- Quantum Progress in 2026: Are We Approaching the Security Cliff? — related-article
- RPC Endpoint — glossary
- RPC Endpoint — related-glossary
- RSA — glossary
- RSA — related-glossary
Canonical knowledge ID:
research:erc-712-typed-structured-data-hashing-and-signing