Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This PR refactors the batcher to submit only data pointers to the batch inbox, the data
being made available on a off chain data layer, in this case celestia.
The serialization format of the data pointer is:
where height is the block height at which the actual data was included and
index is the index at which the transaction was included in the block.
(TODO: clarify if we need tx index or share index or both here)
Since the batch calldata is now just a data pointer instead of the actual data, corresponding
refactor has been made to the op-node to read the data pointer off the batch inbox address first
and then retreive the data from the data layer.
This makes the rollup more modular as it makes the data available on it's own layer while using
ethereum for settlement, thereby inheriting it's security. Celestia is the data availability
layer of choice as it provides a high guarantee of the data availability.
Checklist