8 releases (1 unstable)

new 28.1.0-non-semver-compat May 8, 2025
28.0.0-non-semver-compat May 5, 2025
27.5.1-non-semver-compat May 1, 2025
27.5.0-non-semver-compat Apr 30, 2025
0.1.0 Jul 13, 2024

#605 in Magic Beans

Download history 123/week @ 2025-01-29 14/week @ 2025-02-05 7/week @ 2025-02-12 2/week @ 2025-02-19 224/week @ 2025-03-05 52/week @ 2025-03-12 200/week @ 2025-03-19 71/week @ 2025-03-26 59/week @ 2025-04-02 110/week @ 2025-04-09 64/week @ 2025-04-16 52/week @ 2025-04-23 405/week @ 2025-04-30

634 downloads per month
Used in 4 crates

MIT/Apache

435KB
10K SLoC

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

~13–21MB
~247K SLoC