Skip to content

WIP: Add BOLT12 payer proof support#845

Draft
vincenzopalazzo wants to merge 2 commits intolightningdevkit:mainfrom
vincenzopalazzo:macros/bolt12-pop
Draft

WIP: Add BOLT12 payer proof support#845
vincenzopalazzo wants to merge 2 commits intolightningdevkit:mainfrom
vincenzopalazzo:macros/bolt12-pop

Conversation

@vincenzopalazzo
Copy link
Contributor

@vincenzopalazzo vincenzopalazzo commented Mar 25, 2026

Summary

  • integrate the payer proof rust-lightning branch and patch transitive rust-lightning crates onto the same forked revision
  • persist BOLT12 invoice payer-proof context from InvoiceReceived and expose Bolt12Payment::create_payer_proof with selective disclosure options
  • add UniFFI-facing payer proof support and wire new payer proof errors through the public API

Verification

  • cargo fmt --all
  • cargo check --lib
  • cargo check --lib --features uniffi
  • cargo test --lib
  • cargo test --lib --features uniffi

Disclosure

  • This PR was prepared with Codex AI assistance.

Please note that this PR is just a test to see if we are adding all the necessary API to the main PR lightningdevkit/rust-lightning#4297

@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Mar 25, 2026

👋 Hi! This PR is now in draft status.
I'll wait to assign reviewers until you mark it as ready for review.
Just convert it out of draft status when you're ready for review!

Integrated payer proof support for outbound BOLT12 payments, including persisted invoice context handling and UniFFI exposure.

AI-assisted-by: Codex
@vincenzopalazzo vincenzopalazzo marked this pull request as draft March 25, 2026 17:13
@vincenzopalazzo vincenzopalazzo changed the title Add BOLT12 payer proof support WIP: Add BOLT12 payer proof support Mar 25, 2026
Adjust liquidity, payment forwarding, splicing, and binding surfaces to stay compatible with the payer proof rust-lightning fork on top of the current upstream mainline.

AI-assisted-by: Codex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants