Skip to main content

Crate silent_payments_scan

Crate silent_payments_scan 

Source
Expand description

§silent-payments-scan

Pluggable scanning backends for BIP 352 Silent Payments.

This crate defines the ScanBackend trait that all scanning backends implement, allowing wallet developers to swap infrastructure (Electrum, Esplora, BIP0352 index server) without changing application code.

§Feature Flags

  • electrum – Enables ElectrumBackend for scanning via Electrum servers
  • index-server – Enables IndexServerBackend for scanning via BIP0352 index servers

§Architecture

The trait is intentionally synchronous (no async runtime). Backends handle all data fetching internally – callers provide keys, height range, and callbacks. Connection errors bubble up immediately; the caller owns retry policy.

Re-exports§

pub use backend::OnMatch;
pub use backend::OnProgress;
pub use backend::ScanBackend;
pub use error::ScanError;
pub use electrum::ElectrumBackend;
pub use index_server::IndexServerBackend;

Modules§

backend
Pluggable scanning backend trait for Silent Payments.
electrum
Electrum-based scanning backend for Silent Payments.
error
Error types for the Silent Payments scan crate.
index_server
BIP0352 index server scanning backend.