Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
0a67061
Add onion-message interception for unknown SCIDs to `OnionMessenger`
tnull Mar 25, 2026
686ad19
f Intercept OMs for all unknown SCIDs
tnull Mar 27, 2026
dda51b8
f Some more docs
tnull Mar 27, 2026
a65dec4
f Fix docs
tnull Mar 27, 2026
ab33c61
f typo
tnull Mar 30, 2026
768055f
Test `OnionMessageIntercepted` for unknown SCID next hops
tnull Mar 27, 2026
40e8300
Test `OnionMessageIntercepted` upgrade/downgrade with LDK 0.2
tnull Mar 27, 2026
4381fdf
Add an LSPS2-aware `BOLT12` router wrapper
tnull Mar 25, 2026
e17bfb4
f Docs
tnull Mar 27, 2026
af9b735
f User offerids in tracking map
tnull Mar 27, 2026
132b810
f Comments
tnull Mar 30, 2026
5340c70
f Docs
tnull Mar 31, 2026
c691d00
Document the LSPS2 `BOLT12` router flow
tnull Mar 25, 2026
f13b39d
Test LSPS2 router payment-path generation for `BOLT12`
tnull Mar 25, 2026
087f12a
Add a blinded-payment-path override to test utilities
tnull Mar 25, 2026
c1ff9ea
Add an LSPS2 `BOLT12` end-to-end integration test
tnull Mar 25, 2026
833313a
f Intercept OMs for all unknown SCIDs
tnull Mar 27, 2026
11624f1
DRAFT: Add opaque `context_data` to `OffersContext::InvoiceRequest`
tnull Mar 31, 2026
cccb464
DRAFT: Thread `context_data` through `verify_invoice_request`
tnull Mar 31, 2026
69b3962
DRAFT: Add invoice builder methods with pre-built payment paths
tnull Mar 31, 2026
81a0ab7
DRAFT: Add `Event::InvoiceRequestReceived` for externally-handled inv…
tnull Mar 31, 2026
a6610ac
f - Use odd event discriminant for InvoiceRequestReceived
tnull Mar 31, 2026
5fac712
DRAFT: Add offer builder variant with embedded context data
tnull Mar 31, 2026
18c3170
DRAFT: Replace `LSPS2BOLT12Router` wrapper with helper functions
tnull Mar 31, 2026
3ada94e
DRAFT: Add async payments (AsyncBolt12Offer) test for LSPS2 paths
tnull Mar 31, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions lightning-liquidity/src/lsps2/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,23 @@ pub enum LSPS2ClientEvent {
/// When the invoice is paid, the LSP will open a channel with the previously agreed upon
/// parameters to you.
///
/// For BOLT11 JIT invoices, `intercept_scid` and `cltv_expiry_delta` can be used in a route
/// hint.
///
/// For BOLT12 JIT flows, use [`LSPS2Bolt12InvoiceParameters::to_context_data`] to serialize
/// these parameters and pass them to
/// [`OffersMessageFlow::create_offer_builder_with_context_data`] when creating the offer. When
/// an [`InvoiceRequest`] is received, the parameters will be surfaced via
/// [`Event::InvoiceRequestReceived`], where they can be deserialized and used to build payment
/// paths via [`build_lsps2_payment_paths`].
///
/// **Note: ** This event will *not* be persisted across restarts.
///
/// [`LSPS2Bolt12InvoiceParameters::to_context_data`]: crate::lsps2::router::LSPS2Bolt12InvoiceParameters::to_context_data
/// [`OffersMessageFlow::create_offer_builder_with_context_data`]: lightning::offers::flow::OffersMessageFlow::create_offer_builder_with_context_data
/// [`InvoiceRequest`]: lightning::offers::invoice_request::InvoiceRequest
/// [`Event::InvoiceRequestReceived`]: lightning::events::Event::InvoiceRequestReceived
/// [`build_lsps2_payment_paths`]: crate::lsps2::router::build_lsps2_payment_paths
InvoiceParametersReady {
/// The identifier of the issued bLIP-52 / LSPS2 `buy` request, as returned by
/// [`LSPS2ClientHandler::select_opening_params`].
Expand Down
1 change: 1 addition & 0 deletions lightning-liquidity/src/lsps2/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ pub mod client;
pub mod event;
pub mod msgs;
pub(crate) mod payment_queue;
pub mod router;
pub mod service;
pub mod utils;
Loading
Loading