15 releases (breaking)

0.12.0 Apr 15, 2024
0.11.0 Mar 5, 2024
0.10.0 Feb 15, 2024
0.6.0 Oct 12, 2023
0.4.0 Mar 20, 2023

#1838 in Magic Beans

Download history 412/week @ 2024-01-03 686/week @ 2024-01-10 356/week @ 2024-01-17 514/week @ 2024-01-24 1006/week @ 2024-01-31 705/week @ 2024-02-07 706/week @ 2024-02-14 789/week @ 2024-02-21 657/week @ 2024-02-28 763/week @ 2024-03-06 818/week @ 2024-03-13 2521/week @ 2024-03-20 2070/week @ 2024-03-27 3242/week @ 2024-04-03 2480/week @ 2024-04-10 2828/week @ 2024-04-17

11,453 downloads per month
Used in 9 crates (7 directly)

MIT/Apache

195KB
3K 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