Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

btcutil/psbt: finalizer ignores sighash flag when finalizing taproot keyspend signature #2005

Closed
guggero opened this issue Jul 14, 2023 · 0 comments · Fixed by #2006
Closed

Comments

@guggero
Copy link
Collaborator

guggero commented Jul 14, 2023

The finalizer should check the sighash flag in

serializedWitness, err = writeWitness(pInput.TaprootKeySpendSig)
.
If it is not equal to txscript.SigHashDefault (and the signature is exactly 64 bytes, so it doesn't yet include the sighash flag), it should be appended to the signature.

Related: #2004

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant