Skip to content
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

AUTH, AUTHCALL integration in EVM config #5

Closed
Tracked by #1
Rjected opened this issue Mar 6, 2024 · 2 comments
Closed
Tracked by #1

AUTH, AUTHCALL integration in EVM config #5

Rjected opened this issue Mar 6, 2024 · 2 comments
Labels
A-instruction Related to an alphanet instruction C-enhancement New feature or request

Comments

@Rjected
Copy link
Member

Rjected commented Mar 6, 2024

EIP-3074 is another account abstraction-related EIP that would be interesting to have on AlphaNet.

This involves adding two new instructions, in the existing custom evm config.

This will require at least adding an entry to an instruction table, and using that instruction table in a custom revm Handler:
https://github.com/bluealloy/revm/blob/0d42796362c9f90d44f902e99417f570c16b4901/crates/interpreter/src/instructions/opcode.rs#L31

The spec:
https://eips.ethereum.org/EIPS/eip-3074

There are already solc and foundry implementations, although not using the evm builder:
https://github.com/clabby/eip-3074-foundry
also:
https://github.com/anna-carroll/3074

@Rjected Rjected added C-enhancement New feature or request A-instruction Related to an alphanet instruction labels Mar 7, 2024
@fgimenez
Copy link
Member

First PR ready for review here #14 with a partial implementation of AUTH still pending:

  • setting authorized context variable
  • reuse code from revm-interpreter I've left TODO comments for some macros that would be useful to have with public access.

@gakonst
Copy link
Member

gakonst commented Apr 1, 2024

Done?

@gakonst gakonst closed this as completed Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-instruction Related to an alphanet instruction C-enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants