3 releases (1 unstable)

new 26.7.0-non-semver-compat Mar 6, 2025
26.2.1-non-semver-compat Jan 29, 2025
0.1.0 Jul 13, 2024

#50 in #zksync

Download history 1/week @ 2024-11-15 2/week @ 2024-11-22 19/week @ 2024-12-06 2/week @ 2024-12-13 1/week @ 2024-12-20 7/week @ 2024-12-27 89/week @ 2025-01-24 39/week @ 2025-01-31 9/week @ 2025-02-07 2/week @ 2025-02-14

80 downloads per month
Used in 8 crates (4 directly)

MIT/Apache

6KB
66 lines

Data Availability Client

This crate contains a trait that has to be implemented by all the DA clients.

Overview

This trait assumes that every implementation follows these logical assumptions:

  • The DA client is only serving as a connector between the ZK chain's sequencer and the DA layer.
  • The DA client is not supposed to be a standalone application, but rather a library that is used by the da_dispatcher.
  • The logic of the retries is implemented in the da_dispatcher, not in the DA clients.
  • The dispatch_blob is supposed to be idempotent, and work correctly even if called multiple times with the same params.
  • The get_inclusion_data has to return the data only when the state roots are relayed to the L1 verification contract (if the DA solution has one).

Dependencies

~0.4–1MB
~22K SLoC