Expand description
Payment string parsing and BIP 321 URI construction for bark wallets.
This module provides two main capabilities:
-
Parsing: [
Wallet::parse_payment_details] accepts any payment string the wallet understands (BIP 321 URIs, BOLT11 invoices, BOLT12 offers, lightning addresses, output scripts, bitcoin addresses, ark addresses) and returns structuredPaymentRequestwith per-method validation errors. -
Construction:
Wallet::bip321_urireturns aBarkBip321UriBuilderfor creating BIP 321 URIs backed by the wallet’s Ark and Lightning capabilities.
Re-exports§
pub use crate::movement::PaymentMethod;
Structs§
- Available
Payment Method - A single payment option with its validation issues.
- Bark
Bip321 UriBuilder - Builder for constructing a
Bip321Uribacked by a barkWallet. - Bark
Extension - Payment
Request - The result of parsing a payment string.
Enums§
- Payment
Method Parsing Error - A non-fatal issue detected while validating a single payment option.