19 breaking releases

new 0.20.1 Dec 19, 2024
0.19.0 Oct 2, 2024
0.16.0 Jul 22, 2024
0.10.0 Mar 27, 2024
0.2.0 Mar 20, 2023

#575 in Magic Beans

Download history 1120/week @ 2024-08-28 943/week @ 2024-09-04 1164/week @ 2024-09-11 377/week @ 2024-09-18 482/week @ 2024-09-25 793/week @ 2024-10-02 430/week @ 2024-10-09 869/week @ 2024-10-16 322/week @ 2024-10-23 854/week @ 2024-10-30 655/week @ 2024-11-06 1719/week @ 2024-11-13 458/week @ 2024-11-20 144/week @ 2024-11-27 692/week @ 2024-12-04 956/week @ 2024-12-11

2,352 downloads per month
Used in hash_pool

MIT/Apache

65KB
1K SLoC

BDK Electrum

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


lib.rs:

This crate is used for returning updates from Electrum servers.

Updates are returned as either a SyncResponse (if [BdkElectrumClient::sync()] is called), or a FullScanResponse (if [BdkElectrumClient::full_scan()] is called).

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.

Refer to example_electrum for a complete example.

Dependencies

~8–17MB
~213K SLoC