EIP-8151 changes ecRecover failure output to prevent quantum attacks
Oct 22 find · published Oct 18GHGitHub · ethereum/EIPs · 2 min readRead original
Core EIPStatus change
colinlyguo updated EIP-8151 to change how the ecRecover precompile handles failed recoveries and accounts with code. Instead of returning 32 zero bytes when recovery fails or when an account has migrated to post-quantum authorization, ecRecover now returns empty output in both cases. This prevents quantum-capable attackers from using old ECDSA private keys to authorize transactions through contracts like ERC-20 permit implementations after an account has switched to post-quantum authorization via EIP-7702. The change applies the same account-code restriction that EIP-3607 uses for transaction authority to the ecRecover function itself.
3000Gas consumed by ecRecover
Comments
Sign in to join the conversation.