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

refactor(avm): separate TS dbs and hints and side-effects #12420

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

fcarreiro
Copy link
Contributor

@fcarreiro fcarreiro commented Mar 3, 2025

STILL WIP

  • WorldStateDB is removed in favor of using a ContractsDB and a TreesDB. This standardized the interface used in the journal, and got rid of the methods to expose the internal merkle db (because now it is "exposed" by default).
  • Everything related to hints is removed from the SideEffectTrace. That class now solely handles tracing of side effects (for the public inputs) and has been massively simplified!
  • The ContractsDataSourcePublicDB is wrapped with a class that creates hints for contracts.

In the future

  • These DBs will be wrapped with classes that adds hints and forward.
  • Wrap the TreesDB with a hint-collecting class.

Note that until I implement hints for the trees, there are no merkle-related hints being generated! This is ok because vm2 doesn't use them yet.

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@fcarreiro fcarreiro force-pushed the fc/avm-separate-dbs-ts branch from 76b3ad4 to de2d36b Compare March 3, 2025 22:04
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.

1 participant