Skip to main content

Module payment_request

Module payment_request 

Source
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 structured PaymentRequest with per-method validation errors.

  • Construction: Wallet::bip321_uri returns a BarkBip321UriBuilder for creating BIP 321 URIs backed by the wallet’s Ark and Lightning capabilities.

Re-exports§

pub use crate::movement::PaymentMethod;

Structs§

AvailablePaymentMethod
A single payment option with its validation issues.
BarkBip321UriBuilder
Builder for constructing a Bip321Uri backed by a bark Wallet.
BarkExtension
PaymentRequest
The result of parsing a payment string.

Enums§

PaymentMethodParsingError
A non-fatal issue detected while validating a single payment option.