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

[wip] Kona ExEx #12

Closed
wants to merge 15 commits into from
Closed

[wip] Kona ExEx #12

wants to merge 15 commits into from

Conversation

merklefruit
Copy link
Collaborator

@merklefruit merklefruit commented Aug 1, 2024

The Kona ExEx uses the Kona-derive implementation to traverse L1 blocks received from ExEx notifications to extract rollup blocks and validate them using either a trusted L2 execution client or a local engine API endpoint.

Current status

  • initialize the local derivation pipeline
  • wait for the reth L1 block to reach L2 genesis
  • main loop: process each new L1 notification and step the derivation pipeline
  • added AttributesValidator trait for switching from trusted to engine-api validation
  • test sync with the TrustedValidator (similar to Kona's trusted-sync example)
  • test sync with the EngineValidator once implemented

It's possible for this example to be expanded to become a full L2 node, where the ExEx is caching all derived payloads and effectively building its own L2 state DB that way. Then, we don't need an L2 RPC anymore and can validate new payloads by building against the local state. Here is a short overview of the steps to reach this milestone:

  • cache all derived payloads (how? can we use Kona's MPT impl with disk backend? need input on this)
  • add ability to execute a full block, akin to performing engine_newPayload on local state (open Q: what about pre-bedrock blocks? presumably we will need some datadir to start with for chains like OP mainnet)
  • (optional, long term): expose all the regular node APIs (from op-reth)
  • (optional, long term): add the rollup node p2p overlay service to follow unsafe heads from the sequencer

Meta

@merklefruit merklefruit mentioned this pull request Aug 1, 2024
@merklefruit
Copy link
Collaborator Author

Hera, a new OP stack rollup node, supercedes this PR and is being built in https://github.com/paradigmxyz/op-rs

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.

feat(kona): Execution Extension that uses Kona to derive L2 Payload Attributes
3 participants