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

Feature request: Skip jump dest analysis #2005

Open
nhtyy opened this issue Jan 17, 2025 · 1 comment
Open

Feature request: Skip jump dest analysis #2005

nhtyy opened this issue Jan 17, 2025 · 1 comment

Comments

@nhtyy
Copy link
Contributor

nhtyy commented Jan 17, 2025

Skipping jumpdest analysis can save alot of work when running inside a zkVM.

This is because we can save on all the constraints needed to scan the bytecode and populate the jump table.

I would be happy to jam on this in the next couple weeks, I did a POC a while back, which just would panic on an invalid jump, but would be nice to see it upstreamed if supported.

@rakita
Copy link
Member

rakita commented Jan 22, 2025

Jumpdest analysis is done only once on contract creation, if you use bytecode from database it already contains jumptable.

In Evm framework (branch on main), unanalyzed bytecode is removed and the only option is to analyze it. On newest release you can check Bytecode::LegacyAnalyzed to skip jumpdest analysis

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

No branches or pull requests

2 participants