@@ -12592,13 +12592,10 @@ where
12592
12592
/// Pays for an [`Offer`] looked up using [BIP 353] Human Readable Names resolved by the DNS
12593
12593
/// resolver(s) at `dns_resolvers` which resolve names according to [bLIP 32].
12594
12594
///
12595
- /// If the wallet supports paying on-chain schemes, you should instead use
12596
- /// [`OMNameResolver::resolve_name`] and [`OMNameResolver::handle_dnssec_proof_for_uri`] (by
12597
- /// implementing [`DNSResolverMessageHandler`]) directly to look up a URI and then delegate to
12598
- /// your normal URI handling.
12599
- ///
12600
- /// Alternatively, the [`bitcoin-payment-instructions`] crate provides an implementation of
12601
- /// much of this logic, and may be useful to decode and resolve payment instructions generally.
12595
+ /// Because most wallets support on-chain or other payment schemes beyond only offers, this is
12596
+ /// deprecated in favor of the [`bitcoin-payment-instructions`] crate, which can be used to
12597
+ /// build an [`OfferFromHrn`] and call [`Self::pay_for_offer_from_hrn`]. Thus, this method is
12598
+ /// deprecated.
12602
12599
///
12603
12600
/// # Payment
12604
12601
///
@@ -12630,6 +12627,7 @@ where
12630
12627
/// [`PaymentFailureReason::UserAbandoned`]: crate::events::PaymentFailureReason::UserAbandoned
12631
12628
/// [`PaymentFailureReason::InvoiceRequestRejected`]: crate::events::PaymentFailureReason::InvoiceRequestRejected
12632
12629
#[cfg(feature = "dnssec")]
12630
+ #[deprecated(note = "Use bitcoin-payment-instructions and pay_for_offer_from_hrn instead")]
12633
12631
pub fn pay_for_offer_from_human_readable_name(
12634
12632
&self, name: HumanReadableName, amount_msats: u64, payment_id: PaymentId,
12635
12633
optional_params: OptionalOfferPaymentParams, dns_resolvers: Vec<Destination>,
0 commit comments