Add TLVs required for splicing taproot channels#1324
Open
t-bast wants to merge 2 commits into
Open
Conversation
Roasbeef
reviewed
Mar 9, 2026
Collaborator
Roasbeef
left a comment
There was a problem hiding this comment.
Nice to have this follow up!
When sending `tx_add_input`, we previously required transmitting the entire transaction being spent to prevent malleability issues where attackers replace a `p2wpkh` input by a `p2pkh` input after signing. When both participants of the interactive-tx protocol sign a taproot input, this malleability issue disappears. We thus allow transmitting only the utxo amount and script in that case. For simplicity, we only allow this when splicing a taproot channels (where both participants sign the previous funding output) or when *all* inputs are using taproot (we could be less strict, but being too smart here may risk losing funds, so we err on the cautious side).
We add musig2 nonce fields in various `interactive-tx` messages to allow using taproot channels with dual funding and splicing.
17 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We add support for splicing and dual-funding taproot channels. Each commit adds a specific feature that leverages taproot and splicing:
prevtxfield when using taproot: there are caveats because of malleability issues (see https://delvingbitcoin.org/t/malleability-issues-when-creating-shared-transactions-with-segwit-v0/497 for more details)