Skip to main content

silent_payments_receive/
lib.rs

1//! # silent-payments-receive
2//!
3//! [BIP 352](https://github.com/bitcoin/bips/blob/master/bip-0352.mediawiki)
4//! Silent Payments receiving: full-block scanning with label support and
5//! spend key derivation for detected SP payments.
6//!
7//! This crate wraps `bdk-sp`'s receive primitives with type-safe
8//! `silent-payments-core` newtypes, explicit error handling, and
9//! SEC-01/03/04 compliance.
10//!
11//! ## Main types
12//!
13//! - [`BlockScanner`] -- scans transactions for SP outputs addressed to the receiver
14//! - [`DetectedOutput`] -- a matched output with spend key derivation
15//! - [`LabelManager`] -- O(1) per-output label matching for labeled addresses
16//! - [`ReceiveError`] -- comprehensive error enum for all receive failure modes
17
18pub mod detected;
19pub mod error;
20pub mod label;
21pub mod scanner;
22
23pub use detected::DetectedOutput;
24pub use error::ReceiveError;
25pub use label::LabelManager;
26pub use scanner::BlockScanner;