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

feat: Validium DA Manager example #1018

Open
wants to merge 4 commits into
base: feat_validium_pubdata_abstraction
Choose a base branch
from

Conversation

ilitteri
Copy link
Contributor

@ilitteri ilitteri commented Feb 5, 2024

DISCLAIMER: This PR makes use of #1016 changes, if you want to run the example please follow the instructions of our internal PR.

DA Manager (separate binary)

A DA Manager is introduced, a component that periodically queries for new batches and uploads their pubdata to some data availability solution, as a separate binary. The way this works is the following:

  • To construct the pubdata, the operator will query Postgres for the four components of pubdata, then convert it into its byte representation using the logic in the
    pub fn construct_pubdata(&self) -> Vec<u8> method of the L1BatchWithMetadata struct.
  • A user wanting to incorporate a new DA solution simply writes their own DA manager in the programming language they prefer, as an application that uses the endpoint introduced above to periodically query for new pubdata and post it to the DA server. For this scenario, we should provide some examples showing what you should implement for your own DA solution.
  • This DA Manager runs independently, from the operator, i.e. as an entirely separate OS process or even on a different machine (in particular, it’s independent from both the eth_tx_aggregator and the eth_tx_manager)

validium diagram.png

@mationorato mationorato changed the base branch from lambdaclass_validium_mode to feat_validium_pubdata_abstraction March 20, 2024 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant