zksync-era
zksync-era copied to clipboard
feat: Validium DA Manager example
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 thepub fn construct_pubdata(&self) -> Vec<u8>
method of theL1BatchWithMetadata
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 separateOS
process or even on a different machine (in particular, it’s independent from both theeth_tx_aggregator
and theeth_tx_manager
)