EIP-712-TYPED-DATA
Signature donnees structurees EIP-712.
Définition
EIP-712 structure : EIP712Domain (name, version, chainId, verifyingContract, salt), Message Type (EIP712Domain + custom struct), TypedData (combined hash). Functions : encodeType(), hashStruct(), encodeData(). Use cases : Permit ERC-20 EIP-2612 (gasless approvals via signature), OpenSea orders, Compound governance votes, AAVE flash loans signed orders, smart wallet meta-transactions. Wallet support : MetaMask, WalletConnect, Rainbow, Trust Wallet display signed fields in human-readable form.
Origine
EIP-712 propose septembre 2017 par Remco Bloemen, Leonid Logvinov, Jacob Evans ; activate dans Ethereum Byzantium hard fork ; adopte massivement par DeFi protocols et NFT markets 2020+.
Exemple en contexte
Un utilisateur OpenSea signe une order Sale via EIP-712 dans MetaMask ; le wallet montre clairement collection, tokenId, price, expiration au lieu de hex hash bytes opaque ; reduces phishing risk.
Termes liés
- EIP-1559 — autre EIP.