Bxpana pfp
Bxpana
@bxpana
This Week I Learned (TWIL): Signature Standards in Ethereum and Diamond Proxies Let’s dive into two critical EIPs: EIP-191 and EIP-712. They play a key role in making Ethereum signatures more secure, readable, and versatile. 👇
1 reply
0 recast
4 reactions

Bxpana pfp
Bxpana
@bxpana
Why do we need these standards? ✅ Human-readable messages: EIP-712 shows structured, user-friendly signing prompts. ✅ Security: EIP-712 prevents replay attacks. ✅ Sponsored transactions: EIP-191 enables sending transactions on behalf of users.
1 reply
0 recast
1 reaction

Bxpana pfp
Bxpana
@bxpana
EIP-191: Basic Structure 📜 Format: 0x19<1 byte version><version specific data><data to sign> Examples of <1 byte version>: 🔹 0x00: Data with a validator 🔹 0x01: Structured data (EIP-712-compatible) 🔹 0x45: Personal_sign
1 reply
0 recast
2 reactions

Bxpana pfp
Bxpana
@bxpana
EIP-712: Structured Data Signing EIP-712 improves traditional message signing by: 🖼️ Adding structure for easier message readability. 🛡️ Defining fields explicitly to prevent signing unintended data. Let’s break it down! 👇
1 reply
0 recast
2 reactions

Bxpana pfp
Bxpana
@bxpana
Key Components of EIP-712 1️⃣ Domain Separator: It encodes metadata like app name, version, chain ID, and contract address. It ensures the signature is valid only within its intended domain.
1 reply
0 recast
2 reactions

Bxpana pfp
Bxpana
@bxpana
2️⃣ Hashing the Message: EIP-712 hashes the structured message to ensure integrity and prevent tampering.
1 reply
0 recast
0 reaction