19 releases (breaking)

0.16.0 Jun 15, 2024
0.14.0 May 10, 2024
0.11.0 Mar 5, 2024
0.6.0 Oct 12, 2023
0.4.0 Mar 20, 2023

#1613 in Magic Beans

Download history 2485/week @ 2024-03-25 2972/week @ 2024-04-01 2557/week @ 2024-04-08 3420/week @ 2024-04-15 3601/week @ 2024-04-22 2379/week @ 2024-04-29 2508/week @ 2024-05-06 1955/week @ 2024-05-13 1720/week @ 2024-05-20 1943/week @ 2024-05-27 3109/week @ 2024-06-03 3097/week @ 2024-06-10 2268/week @ 2024-06-17 1721/week @ 2024-06-24 1344/week @ 2024-07-01 1477/week @ 2024-07-08

6,882 downloads per month
Used in 13 crates (9 directly)

MIT/Apache

220KB
3.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

~12MB
~138K SLoC