Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
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