File tree 3 files changed +10
-4
lines changed
3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -338,8 +338,10 @@ struct InvoiceFields {
338
338
339
339
impl Invoice {
340
340
/// Paths to the recipient originating from publicly reachable nodes, including information
341
- /// needed for routing payments across them. Blinded paths provide recipient privacy by
342
- /// obfuscating its node id.
341
+ /// needed for routing payments across them.
342
+ ///
343
+ /// Blinded paths provide recipient privacy by obfuscating its node id. Note, however, that this
344
+ /// privacy is lost if a public node id is used for [`Invoice::signing_pubkey`].
343
345
pub fn payment_paths ( & self ) -> & [ ( BlindedPath , BlindedPayInfo ) ] {
344
346
& self . contents . fields ( ) . payment_paths [ ..]
345
347
}
Original file line number Diff line number Diff line change @@ -333,7 +333,9 @@ impl InvoiceRequest {
333
333
/// for the invoice.
334
334
///
335
335
/// The `payment_paths` parameter is useful for maintaining the payment recipient's privacy. It
336
- /// must contain one or more elements.
336
+ /// must contain one or more elements ordered from most-preferred to least-preferred, if there's
337
+ /// a preference. Note, however, that any privacy is lost if a public node id was used for
338
+ /// [`Offer::signing_pubkey`].
337
339
///
338
340
/// Errors if the request contains unknown required features.
339
341
///
Original file line number Diff line number Diff line change @@ -331,7 +331,9 @@ impl Refund {
331
331
/// offer, which does have a `signing_pubkey`.
332
332
///
333
333
/// The `payment_paths` parameter is useful for maintaining the payment recipient's privacy. It
334
- /// must contain one or more elements.
334
+ /// must contain one or more elements ordered from most-preferred to least-preferred, if there's
335
+ /// a preference. Note, however, that any privacy is lost if a public node id is used for
336
+ /// `signing_pubkey`.
335
337
///
336
338
/// Errors if the request contains unknown required features.
337
339
///
You can’t perform that action at this time.
0 commit comments