SIP: EIP-7702 Compatibility Standard#31
Open
Ridwannurudeen wants to merge 1 commit into
Open
Conversation
Proposes how Seaport contracts should handle EIP-7702 delegated EOAs for activation guards, signature verification, and zone interactions. Addresses tstorish#5 and broken tx.origin invariants post-Pectra.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This SIP proposes a standard for how Seaport contracts should handle EIP-7702 delegated EOAs, introduced in Ethereum's Pectra upgrade.
Problem
EIP-7702 breaks three critical assumptions in the Seaport ecosystem:
1.
tstorish.__activateTstore()Reentrancy Guard BypassThe standalone tstorish library uses
msg.sender != tx.originto restrict__activateTstore()to pure EOAs. Under EIP-7702, a delegated EOA can execute arbitrary code while maintainingmsg.sender == tx.origin, enabling an attacker to:__activateTstore()mid-execution (passes the guard since msg.sender == tx.origin)This directly addresses tstorish#5, which has been open since March 2025 with no resolution.
2.
extcodesizeMisclassificationDelegated EOAs have
extcodesize == 23(the delegation designator0xef0100 || address). This causes Seaport'sSignatureVerification.solto misclassify ECDSA failures for delegated EOA signers asBadContractSignatureinstead of the appropriate ECDSA-specific error.3. Zone/Offerer Account-Type Assumptions
Custom zones implementing SIP-7 or SIP-15 that use
extcodesize-basedisContract()checks misclassify delegated EOAs as smart contracts, potentially causing authorization failures, wrong signature verification paths, or incorrect fee calculations.What This SIP Specifies
msg.sender != tx.originwithmsg.sender.code.length != 0SIP_EIP7702UtilswithfetchDelegate(),isDelegatedEOA(),isPureEOA()isContract()patterns, signature path selection, EOA restriction policiestx.origin == msg.senderguards; mandate mutex-based guardsReferences
msg.sender != tx.originno longer safe