Skip to content

Commit 4ed37d8

Browse files
committed
Correct docs
1 parent e6ee194 commit 4ed37d8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lightning/src/offers/refund.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,14 @@ macro_rules! refund_builder_methods { (
189189
/// different payer id for each refund, assuming a different nonce is used. Otherwise, the
190190
/// provided `node_id` is used for the payer id.
191191
///
192-
/// Also, sets the metadata when [`RefundBuilder::build`] is called such that it can be used to
193-
/// verify that an [`InvoiceRequest`] was produced for the refund given an [`ExpandedKey`].
192+
/// Also, sets the metadata when [`RefundBuilder::build`] is called such that it can be used by
193+
/// [`Bolt12Invoice::verify`] to determine if the invoice was produced for the refund given an
194+
/// [`ExpandedKey`].
194195
///
195196
/// The `payment_id` is encrypted in the metadata and should be unique. This ensures that only
196197
/// one invoice will be paid for the refund and that payments can be uniquely identified.
197198
///
198-
/// [`InvoiceRequest`]: crate::offers::invoice_request::InvoiceRequest
199+
/// [`Bolt12Invoice::verify`]: crate::offers::invoice::Bolt12Invoice::verify
199200
/// [`ExpandedKey`]: crate::ln::inbound_payment::ExpandedKey
200201
pub fn deriving_payer_id(
201202
node_id: PublicKey, expanded_key: &ExpandedKey, nonce: Nonce,

0 commit comments

Comments
 (0)