Skip to content

Expose origin and the addresses of contracts being constructed in precompile handle #313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

RomarQ
Copy link
Contributor

@RomarQ RomarQ commented May 2, 2025

Exposes the transaction origin in precompile handle, this can be used to identify if an address is an Externally Owner Account (EOA). (tx.origin == msg.sender)

This is necessary to distinguish addresses from contracts under-construction and real EOA's, since contracts under-construction only have code after the init_code is executed.

Exposing the origin to precompiles will be required for supporting https://eips.ethereum.org/EIPS/eip-7702, since it adds the possibility for EOA to have code.

@RomarQ
Copy link
Contributor Author

RomarQ commented May 2, 2025

@sorpaas @boundless-forest @koushiro

If you guys agree to merge these changes, I will add the follow-up changes to frontier.

@koushiro koushiro merged commit 4ecc569 into rust-ethereum:v0.x May 3, 2025
2 checks passed
@RomarQ RomarQ deleted the rq/expose-origin-in-precompile-handle branch May 3, 2025 14:51
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.

2 participants