We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d831270 commit 7da68f6Copy full SHA for 7da68f6
lightning/src/events/mod.rs
@@ -940,6 +940,11 @@ pub enum Event {
940
/// [`Route::get_total_fees`]: crate::routing::router::Route::get_total_fees
941
fee_paid_msat: Option<u64>,
942
/// The bolt12 invoice that was paid. `None` if the payment was a non-bolt12 payment.
943
+ ///
944
+ /// The bolt12 invoice is useful for proof of payment because it contains the
945
+ /// payment hash. A third party can verify that the payment was made by
946
+ /// showing the invoice and confirming that the payment hash matches
947
+ /// the hash of the payment preimage.
948
bolt12_invoice: Option<Bolt12Invoice>,
949
},
950
/// Indicates an outbound payment failed. Individual [`Event::PaymentPathFailed`] events
0 commit comments