Skip to content

Conversation

@guggero
Copy link
Collaborator

@guggero guggero commented Jun 29, 2022

Fixes #6626.

@guggero guggero added wallet The wallet (lnwallet) which LND uses bug fix psbt labels Jun 29, 2022
@guggero guggero added this to the v0.15.1 milestone Jun 29, 2022
@guggero guggero requested review from Roasbeef and bhandras June 29, 2022 16:27
Copy link
Member

@Roasbeef Roasbeef left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🐊

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great commit message, this makes a lot of sense in retrospect.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice expansion of our test coverage here 👍

@guggero guggero force-pushed the sign-psbt-np2wkh branch 2 times, most recently from ab82b5d to ad299ba Compare June 30, 2022 08:24
guggero added 3 commits June 30, 2022 10:27
Fixes lightningnetwork#6626.
If either of the two fields FinalScriptSig or FinalScriptWitness is set
on an input of a PSBT then that results in most of the fields of that
input not to be serialized in the packet anymore, since the input is
considered to be complete.
But because a signer isn't supposed to set any of the Final* fields,
this was wrong from the beginning. Only the finalizer will set those
fields.
@guggero guggero force-pushed the sign-psbt-np2wkh branch from ad299ba to 719fd58 Compare June 30, 2022 08:27
Copy link
Collaborator

@bhandras bhandras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, very nice and clean PR. Only reviewed from the code quality POV as I'm not very knowledgeable about psbt construction.

@guggero guggero merged commit 3af42ee into lightningnetwork:master Jun 30, 2022
@guggero guggero deleted the sign-psbt-np2wkh branch June 30, 2022 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug fix psbt wallet The wallet (lnwallet) which LND uses

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SignPsbt over nested pay to witness public key hash fails to produce signature

3 participants