20 breaking releases

0.21.1 Dec 19, 2024
0.20.0 Oct 2, 2024
0.17.0 Jul 22, 2024
0.11.0 Mar 5, 2024
0.4.0 Mar 20, 2023

#34 in #descriptor

Download history 1536/week @ 2024-09-24 2648/week @ 2024-10-01 2606/week @ 2024-10-08 3862/week @ 2024-10-15 2445/week @ 2024-10-22 2963/week @ 2024-10-29 3429/week @ 2024-11-05 4154/week @ 2024-11-12 3165/week @ 2024-11-19 3011/week @ 2024-11-26 3766/week @ 2024-12-03 5056/week @ 2024-12-10 3286/week @ 2024-12-17 1181/week @ 2024-12-24 2387/week @ 2024-12-31 2416/week @ 2025-01-07

9,806 downloads per month
Used in 18 crates (8 directly)

MIT/Apache

260KB
4.5K SLoC

BDK Chain

BDK keychain tracker, tools for storing and indexing chain data.


lib.rs:

This crate is a collection of core structures for Bitcoin Dev Kit.

The goal of this crate is to give wallets the mechanisms needed to:

  1. Figure out what data they need to fetch.
  2. Process the data in a way that never leads to inconsistent states.
  3. Fully index that data and expose it to be consumed without friction.

Our design goals for these mechanisms are:

  1. Data source agnostic -- nothing in bdk_chain cares about where you get data from or whether you do it synchronously or asynchronously. If you know a fact about the blockchain, you can just tell bdk_chain's APIs about it, and that information will be integrated, if it can be done consistently.
  2. Data persistence agnostic -- bdk_chain does not care where you cache on-chain data, what you cache or how you retrieve it from persistent storage.

Dependencies

~11–15MB
~205K SLoC