Skip to content

Commit a11bf0e

Browse files
feat: bump LDK to include BLIP-42 contact secret support
Update rust-lightning dependency to include commit 40bd9e4 from PR #4210 which adds contact_secret and payer_offer fields to OptionalOfferPaymentParams and create_compact_offer_builder to ChannelManager/OffersMessageFlow. This enables passing BLIP-42 contact information through the standard LDK payment API via OptionalOfferPaymentParams instead of requiring separate handling. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c29f531 commit a11bf0e

2 files changed

Lines changed: 27 additions & 23 deletions

File tree

Cargo.toml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ default = []
3939
#lightning-liquidity = { version = "0.2.0", features = ["std"] }
4040
#lightning-macros = { version = "0.2.0" }
4141

42-
lightning = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "d5baee83aee0e2674020700f77918f46b3925ab6", features = ["std"] }
43-
lightning-types = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "d5baee83aee0e2674020700f77918f46b3925ab6" }
44-
lightning-invoice = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "d5baee83aee0e2674020700f77918f46b3925ab6", features = ["std"] }
45-
lightning-net-tokio = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "d5baee83aee0e2674020700f77918f46b3925ab6" }
46-
lightning-persister = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "d5baee83aee0e2674020700f77918f46b3925ab6", features = ["tokio"] }
47-
lightning-background-processor = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "d5baee83aee0e2674020700f77918f46b3925ab6" }
48-
lightning-rapid-gossip-sync = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "d5baee83aee0e2674020700f77918f46b3925ab6" }
49-
lightning-block-sync = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "d5baee83aee0e2674020700f77918f46b3925ab6", features = ["rest-client", "rpc-client", "tokio"] }
50-
lightning-transaction-sync = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "d5baee83aee0e2674020700f77918f46b3925ab6", features = ["esplora-async-https", "time", "electrum-rustls-ring"] }
51-
lightning-liquidity = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "d5baee83aee0e2674020700f77918f46b3925ab6", features = ["std"] }
52-
lightning-macros = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "d5baee83aee0e2674020700f77918f46b3925ab6" }
42+
lightning = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "5e0461f26e7eb7cc0506280490b2a5df2307e0ef", features = ["std"] }
43+
lightning-types = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "5e0461f26e7eb7cc0506280490b2a5df2307e0ef" }
44+
lightning-invoice = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "5e0461f26e7eb7cc0506280490b2a5df2307e0ef", features = ["std"] }
45+
lightning-net-tokio = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "5e0461f26e7eb7cc0506280490b2a5df2307e0ef" }
46+
lightning-persister = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "5e0461f26e7eb7cc0506280490b2a5df2307e0ef", features = ["tokio"] }
47+
lightning-background-processor = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "5e0461f26e7eb7cc0506280490b2a5df2307e0ef" }
48+
lightning-rapid-gossip-sync = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "5e0461f26e7eb7cc0506280490b2a5df2307e0ef" }
49+
lightning-block-sync = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "5e0461f26e7eb7cc0506280490b2a5df2307e0ef", features = ["rest-client", "rpc-client", "tokio"] }
50+
lightning-transaction-sync = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "5e0461f26e7eb7cc0506280490b2a5df2307e0ef", features = ["esplora-async-https", "time", "electrum-rustls-ring"] }
51+
lightning-liquidity = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "5e0461f26e7eb7cc0506280490b2a5df2307e0ef", features = ["std"] }
52+
lightning-macros = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "5e0461f26e7eb7cc0506280490b2a5df2307e0ef" }
5353

5454
bdk_chain = { version = "0.23.0", default-features = false, features = ["std"] }
5555
bdk_esplora = { version = "0.22.0", default-features = false, features = ["async-https-rustls", "tokio"]}
@@ -85,7 +85,7 @@ bitcoin-payment-instructions = { git = "https://github.com/joostjager/bitcoin-pa
8585
winapi = { version = "0.3", features = ["winbase"] }
8686

8787
[dev-dependencies]
88-
lightning = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "d5baee83aee0e2674020700f77918f46b3925ab6", features = ["std", "_test_utils"] }
88+
lightning = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "5e0461f26e7eb7cc0506280490b2a5df2307e0ef", features = ["std", "_test_utils"] }
8989
rand = { version = "0.9.2", default-features = false, features = ["std", "thread_rng", "os_rng"] }
9090
proptest = "1.0.0"
9191
regex = "1.5.6"
@@ -173,14 +173,14 @@ harness = false
173173
#vss-client-ng = { git = "https://github.com/lightningdevkit/vss-client", branch = "main" }
174174
#
175175
[patch."https://github.com/lightningdevkit/rust-lightning"]
176-
lightning = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "d5baee83aee0e2674020700f77918f46b3925ab6" }
177-
lightning-types = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "d5baee83aee0e2674020700f77918f46b3925ab6" }
178-
lightning-invoice = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "d5baee83aee0e2674020700f77918f46b3925ab6" }
179-
lightning-net-tokio = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "d5baee83aee0e2674020700f77918f46b3925ab6" }
180-
lightning-persister = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "d5baee83aee0e2674020700f77918f46b3925ab6" }
181-
lightning-background-processor = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "d5baee83aee0e2674020700f77918f46b3925ab6" }
182-
lightning-rapid-gossip-sync = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "d5baee83aee0e2674020700f77918f46b3925ab6" }
183-
lightning-block-sync = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "d5baee83aee0e2674020700f77918f46b3925ab6" }
184-
lightning-transaction-sync = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "d5baee83aee0e2674020700f77918f46b3925ab6" }
185-
lightning-liquidity = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "d5baee83aee0e2674020700f77918f46b3925ab6" }
186-
lightning-macros = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "d5baee83aee0e2674020700f77918f46b3925ab6" }
176+
lightning = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "5e0461f26e7eb7cc0506280490b2a5df2307e0ef" }
177+
lightning-types = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "5e0461f26e7eb7cc0506280490b2a5df2307e0ef" }
178+
lightning-invoice = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "5e0461f26e7eb7cc0506280490b2a5df2307e0ef" }
179+
lightning-net-tokio = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "5e0461f26e7eb7cc0506280490b2a5df2307e0ef" }
180+
lightning-persister = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "5e0461f26e7eb7cc0506280490b2a5df2307e0ef" }
181+
lightning-background-processor = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "5e0461f26e7eb7cc0506280490b2a5df2307e0ef" }
182+
lightning-rapid-gossip-sync = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "5e0461f26e7eb7cc0506280490b2a5df2307e0ef" }
183+
lightning-block-sync = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "5e0461f26e7eb7cc0506280490b2a5df2307e0ef" }
184+
lightning-transaction-sync = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "5e0461f26e7eb7cc0506280490b2a5df2307e0ef" }
185+
lightning-liquidity = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "5e0461f26e7eb7cc0506280490b2a5df2307e0ef" }
186+
lightning-macros = { git = "https://github.com/vincenzopalazzo/rust-lightning", rev = "5e0461f26e7eb7cc0506280490b2a5df2307e0ef" }

src/payment/bolt12.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ impl Bolt12Payment {
150150
payer_note: payer_note.clone(),
151151
retry_strategy,
152152
route_params_config: route_parameters,
153+
contact_secrets: None,
154+
payer_offer: None,
153155
};
154156
let res = if let Some(hrn) = hrn {
155157
let hrn = maybe_deref(&hrn);
@@ -336,6 +338,8 @@ impl Bolt12Payment {
336338
payer_note: payer_note.clone(),
337339
retry_strategy,
338340
route_params_config: route_parameters,
341+
contact_secrets: None,
342+
payer_offer: None,
339343
};
340344
let res = if let Some(quantity) = quantity {
341345
self.channel_manager

0 commit comments

Comments
 (0)