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

challenger: Introduce StateConverter to abstract loading VM states #11715

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

ajsutton
Copy link
Contributor

@ajsutton ajsutton commented Sep 3, 2024

Description

Extracts a VM-agnostic implementation of PrestateProvider that can be shared between cannon and asterisc. The actual state parsing required by it and generating proofs in the TraceProvider is now provided by a StateConverter. Importantly the parsed state is never returned from the StateConverter only the more generic data that's required, making code much more agnostic to the particular state format.

Tests

Refactoring covered by existing tests.

@ajsutton ajsutton requested a review from a team as a code owner September 3, 2024 00:52
@ajsutton ajsutton requested review from tynes and Inphi and removed request for tynes September 3, 2024 00:52
Copy link
Contributor

@Inphi Inphi left a comment

Choose a reason for hiding this comment

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

more - than + is tight

@ajsutton ajsutton added this pull request to the merge queue Sep 4, 2024
Merged via the queue into develop with commit 3410109 Sep 4, 2024
59 checks passed
@ajsutton ajsutton deleted the aj/no-parse-cannon-state branch September 4, 2024 21:36
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