Skip to main content
Kona’s derivation pipeline pulls in data from sources that are trait abstracted so the pipeline can be generic over various data sources. Note, “data sources” is used interchangeably with “trait-abstracted providers” for the purpose of this document. The key traits required for the pipeline are the following. The kona-derive-alloy crate provides std implementations of these traits using Alloy’s reqwest-backed providers.

Provider Usage

Although trait-abstracted Providers are used throughout the pipeline and its stages, the PipelineBuilder makes constructing the pipeline generic over the providers. An example is shown below, where the three required trait implementations are the providers stubbed with todo!().

Implementing a Custom Data Availability Provider

NoticeThe only required method for the DataAvailabilityProvider trait is the next method.