You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SignPsbt when using nested p2wpkh inputs does not produce signatures
Your environment
lnd v0.15.0-beta.rc4 (also 0.14.3-beta)
Steps to reproduce
Create wallet that only has np2wpkh UTXOs
Use FundPsbt to create a PSBT
Call SignPsbt to get a signature
Expected behavior
Sign PSBT should produce a "partial signature", as it does for regular p2wpkh input signing requests, and it should produce no "final" elements since that is the role of the finalizer and this API is to be used for signature collection
Actual behavior
The redeem script is populated as final_scriptSig in the output, however there is no partial signature as there is for a p2wpkh input
Fixeslightningnetwork#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.
Fixeslightningnetwork#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.
Background
SignPsbt when using nested p2wpkh inputs does not produce signatures
Your environment
Steps to reproduce
FundPsbt
to create a PSBTSignPsbt
to get a signatureExpected behavior
Sign PSBT should produce a "partial signature", as it does for regular p2wpkh input signing requests, and it should produce no "final" elements since that is the role of the finalizer and this API is to be used for signature collection
Actual behavior
The redeem script is populated as
final_scriptSig
in the output, however there is no partial signature as there is for a p2wpkh inputExample input being passed to
SignPsbt
:And the output from
SignPsbt
The text was updated successfully, but these errors were encountered: