Skip to main content

silent_payments_send/
lib.rs

1//! # silent-payments-send
2//!
3//! BIP 352 Silent Payments sending: builder-style API for constructing
4//! Silent Payment outputs with automatic input eligibility checks,
5//! SIGHASH_ALL enforcement, and change output generation.
6//!
7//! Implements the sender role from [BIP 352](https://github.com/bitcoin/bips/blob/master/bip-0352.mediawiki):
8//!
9//! - [`SilentPaymentSender`] -- builder that validates inputs and produces output scripts
10//! - [`SilentPaymentOutput`] -- a derived P2TR output ready for inclusion in a transaction
11//! - [`SendError`] -- comprehensive error enum for all send failure modes
12
13pub mod error;
14pub mod output;
15pub mod sender;
16
17pub use error::SendError;
18pub use output::SilentPaymentOutput;
19pub use sender::SilentPaymentSender;