-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Stop requiring imported pubkey to sign non-PKH schemes #14424
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
Conversation
|
This is a fix for #14415 right? |
|
@meshcollider Hopefully. |
src/script/sign.cpp
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing this is also breaking the PSBT updating test. Without it, we don't know which pubkeys are needed for signing in order to properly update a PSBT with the pubkeys.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry can you point to where this breaks stuff exactly, non-obvious to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PSBT relies on the GetPubKey helper function to find out which public keys are used and to add the public key to a SignatureData object. The public keys are taken from the sigdata after ProduceSignature is done and moved into the PSBT. Without this call to GetPubKey, the pubkeys that were needed during signing are not added to the sigdata and thus not added to the PSBT. This causes the test to fail (and further breaks PSBT updating) as public keys that are watch only are not being added to the PSBT.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possibly fixed.
a23e50f to
2f6b466
Compare
|
one build was failing to finish building(?), kicked |
|
utACK 2f6b466 |
|
utACK 2f6b466 |
|
Marked as 0.17.1. |
|
utACK 2f6b466 |
…to sign non-PKH schemes) 89a9a9d Stop requiring imported pubkey to sign non-PKH schemes (Pieter Wuille) Pull request description: Github-Pull: #14424 Rebased-From: 2f6b466 Tree-SHA512: 1ea10dee66626f04918f197cd7c4949a836fa49c8f676f276b2328f8d79389059db7b30fc04d4c4bf8209f6a8d21f3ea49a017ddc7623eca6b7e6efc2fe0d749
|
Backported in #14889. |
Summary: ... This is a fix for bitcoin/bitcoin#14415 --- This is a backport of Core [[bitcoin/bitcoin#14424 | PR14424]] Test Plan: cmake .. -GENABLE_WERROR=ON -GNinja ninja check-all Reviewers: #bitcoin_abc, deadalnix Reviewed By: #bitcoin_abc, deadalnix Differential Revision: https://reviews.bitcoinabc.org/D6028
Summary: ... This is a fix for bitcoin/bitcoin#14415 --- This is a backport of Core [[bitcoin/bitcoin#14424 | PR14424]] Test Plan: cmake .. -GENABLE_WERROR=ON -GNinja ninja check-all Reviewers: #bitcoin_abc, deadalnix Reviewed By: #bitcoin_abc, deadalnix Differential Revision: https://reviews.bitcoinabc.org/D6028
…chemes 2f6b466 Stop requiring imported pubkey to sign non-PKH schemes (Pieter Wuille) Pull request description: ... This is a fix for bitcoin#14415 Tree-SHA512: 113b4ddfbdfcce7dbaa15c565ac7ec68d16127aa4d47628e0801f2437cbe369e0fa8beb0de191d43dcb2f8cbb6f1bf8d79a5db0f4e352f38fe7280124475710a
merge bitcoin#16117, bitcoin#18358, bitcoin#17383, bitcoin#21052, bitcoin#14424, bitcoin#15159, bitcoin#14689, bitcoin#14978, partial bitcoin#16908, bitcoin#14978, bitcoin#13932: Auxillary Backports
...
This is a fix for #14415