16 releases (breaking)

new 0.13.0 May 2, 2024
0.11.0 Mar 5, 2024
0.6.0 Oct 12, 2023
0.5.0 Jul 19, 2023
0.4.0 Mar 20, 2023

#2354 in Magic Beans

Download history 499/week @ 2024-01-11 550/week @ 2024-01-18 547/week @ 2024-01-25 839/week @ 2024-02-01 670/week @ 2024-02-08 764/week @ 2024-02-15 772/week @ 2024-02-22 845/week @ 2024-02-29 575/week @ 2024-03-07 1025/week @ 2024-03-14 2658/week @ 2024-03-21 2301/week @ 2024-03-28 3264/week @ 2024-04-04 2479/week @ 2024-04-11 3744/week @ 2024-04-18 2557/week @ 2024-04-25

12,698 downloads per month
Used in 10 crates (8 directly)

MIT/Apache

205KB
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

~8.5MB
~99K SLoC