14 breaking releases

new 0.15.0 Jun 15, 2024
0.13.0 May 10, 2024
0.10.0 Mar 27, 2024
0.4.0 Oct 12, 2023
0.2.0 Mar 20, 2023

#339 in Authentication

Download history 74/week @ 2024-02-23 130/week @ 2024-03-01 44/week @ 2024-03-08 10/week @ 2024-03-15 102/week @ 2024-03-22 116/week @ 2024-03-29 24/week @ 2024-04-05 131/week @ 2024-04-12 30/week @ 2024-04-19 97/week @ 2024-04-26 46/week @ 2024-05-03 515/week @ 2024-05-10 614/week @ 2024-05-17 888/week @ 2024-05-24 668/week @ 2024-05-31 1345/week @ 2024-06-07

3,723 downloads per month

MIT/Apache

245KB
4K SLoC

BDK Electrum

BDK Electrum extends electrum-client to update bdk_chain structures from an Electrum server.


lib.rs:

This crate is used for updating structures of bdk_chain with data from an Electrum server.

The two primary methods are BdkElectrumClient::sync and BdkElectrumClient::full_scan. In most cases BdkElectrumClient::sync is used to sync the transaction histories of scripts that the application cares about, for example the scripts for all the receive addresses of a Wallet's keychain that it has shown a user. BdkElectrumClient::full_scan is meant to be used when importing or restoring a keychain where the range of possibly used scripts is not known. In this case it is necessary to scan all keychain scripts until a number (the "stop gap") of unused scripts is discovered. For a sync or full scan the user receives relevant blockchain data and output updates for bdk_chain.

Refer to example_electrum for a complete example.

Dependencies

~13MB
~168K SLoC