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

feat(providers): implement WitnessStateProvider #10894

Open
Rjected opened this issue Sep 13, 2024 · 1 comment
Open

feat(providers): implement WitnessStateProvider #10894

Rjected opened this issue Sep 13, 2024 · 1 comment
Assignees
Labels
A-execution Related to the Execution and EVM C-enhancement New feature or request

Comments

@Rjected
Copy link
Member

Rjected commented Sep 13, 2024

This will be useful for implementing a block execution endpoint that works with outputs from debug_executionWitness

This should contain a witness and implement the required Reader traits like AccountReader

@Rjected Rjected added C-enhancement New feature or request A-execution Related to the Execution and EVM labels Sep 13, 2024
@Rjected Rjected self-assigned this Sep 13, 2024
@nhtyy
Copy link
Contributor

nhtyy commented Sep 20, 2024

Hey Id be happy to give this a shot soon if youd like @Rjected

From my understanding this would be a type that implements StateProvider and is probably generic over another StateProvider, a witness is applied and this new type can store maps that covers all the accounts touched in the witness, any other account can then be delegated to the inner StateProvider.

In the ExecutionWitness, we should be able to pull out the addresses changed and store the new account info via the state field

And with the keys we can recover any updated storage slots

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-execution Related to the Execution and EVM C-enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

2 participants