Skip to content

Conversation

@snissn
Copy link
Contributor

@snissn snissn commented Oct 31, 2025

EIP-7702 defines a new EIP-2718 transaction type (0x04) that includes an authorization_list. Each authorization is a signed tuple from an EOA (the "authority") designating a smart contract (the "delegate") to execute on its behalf.

This FIP adapts EIP-7702 to the FEVM architecture. The implementation introduces a new method, ApplyAndCall, in the EVM actor. This method atomically processes the authorization list—validating signatures, updating the delegation mapping, and incrementing authority nonces—and then executes the outer transaction call. The FEVM interpreter is updated to recognize these delegations: when a CALL targets a delegated EOA, the interpreter executes the delegate's code within the authority's context. This implementation ensures that delegation mappings and nonce increments persist even if the outer transaction call reverts, adhering to the EIP's specified atomicity model.

Discussion: #1143


#### Delegation Indicator

When a delegation is active, the EOA is virtually associated with a 23-byte delegation indicator bytecode:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the meaning of virtual association?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for raising this point. The term 'virtually' introduced an ambiguity that was not intended for the technical specification. I have removed the word from the document, and believe this improves clarity and precision.

Clarifies the relationship between the EOA and the delegation indicator
bytecode by removing the term "virtually," which was flagged as
ambiguous during review. The EOA is effectively associated with the
bytecode during active delegation.
@rvagg
Copy link
Member

rvagg commented Dec 5, 2025

@snissn let's assign this number 0111 - please update the filename, title, frontmatter and README link.

@snissn
Copy link
Contributor Author

snissn commented Dec 5, 2025

thanks @rvagg updated here: 032ffea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants