Skip to content

Added splicing plumbing#736

Open
ihordiachenko wants to merge 6 commits into
mainfrom
feature/splicing_support
Open

Added splicing plumbing#736
ihordiachenko wants to merge 6 commits into
mainfrom
feature/splicing_support

Conversation

@ihordiachenko

@ihordiachenko ihordiachenko commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Rationale

This PR prepares Greenlight for splicing support without waiting for the VLS side of things. This establishes the CLN API, binding, persistence, and policy boundaries needed for later signer integration.

What Changed

  • Added low-level CLN splice RPC plumbing and v26.06 bindings.
  • Persisted splice sessions, wallet PSBT context, authorization metadata, and outpoint indexes.
  • Captured relevant CLN response facts and linked PSBTs to splice sessions.
  • Added a signer policy resolver that validates known invariants and fails closed at the missing VLS proof boundary.
  • Added trace and regtest coverage for policy decisions and signer rejections.

Trade-offs

  • Splices are exposed via experimental-splicing Cargo feature but cannot complete until VLS provides the required signing proofs.

Handling PBSTs

Greenlight links each splice PSBT to its splice session during SpliceInit and records whether funding and signing were authorized. The signer rejects it unless the link and signing approval are present. Unrelated PSBTs remain outside splice handling and follow the existing signer policy.

@ihordiachenko
ihordiachenko force-pushed the feature/splicing_support branch 2 times, most recently from 8489f30 to dbf8e9b Compare July 21, 2026 15:22
@ihordiachenko
ihordiachenko force-pushed the feature/splicing_support branch from dbf8e9b to 6de2272 Compare July 21, 2026 23:41
@ihordiachenko
ihordiachenko force-pushed the feature/splicing_support branch from 6de2272 to 2b9b71d Compare July 22, 2026 00:53
@ihordiachenko
ihordiachenko marked this pull request as ready for review July 22, 2026 13:19
@ihordiachenko
ihordiachenko requested a review from cdecker July 22, 2026 21:08
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.

1 participant