Skip to content

Conversation

@sipa
Copy link
Member

@sipa sipa commented Oct 7, 2018

...

This is a fix for #14415

@meshcollider
Copy link
Contributor

This is a fix for #14415 right?

@sipa
Copy link
Member Author

sipa commented Oct 8, 2018

@meshcollider Hopefully.

@maflcko maflcko added the Wallet label Oct 8, 2018
Copy link
Member

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.

Copy link
Member

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

Copy link
Member

@achow101 achow101 Oct 8, 2018

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.

Copy link
Member Author

Choose a reason for hiding this comment

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

Possibly fixed.

@sipa sipa force-pushed the 201810_importpubkeylol branch from a23e50f to 2f6b466 Compare October 8, 2018 05:15
@instagibbs
Copy link
Member

one build was failing to finish building(?), kicked

@achow101
Copy link
Member

achow101 commented Oct 9, 2018

utACK 2f6b466

@instagibbs
Copy link
Member

utACK 2f6b466

@sipa sipa added this to the 0.17.1 milestone Oct 9, 2018
@sipa
Copy link
Member Author

sipa commented Oct 9, 2018

Marked as 0.17.1.

@meshcollider
Copy link
Contributor

utACK 2f6b466

@jonasschnelli
Copy link
Contributor

Tested ACK 2f6b466, fixes #14415

@jonasschnelli jonasschnelli merged commit 2f6b466 into bitcoin:master Oct 15, 2018
jonasschnelli added a commit that referenced this pull request Oct 15, 2018
2f6b466 Stop requiring imported pubkey to sign non-PKH schemes (Pieter Wuille)

Pull request description:

  ...

  This is a fix for #14415

Tree-SHA512: 113b4ddfbdfcce7dbaa15c565ac7ec68d16127aa4d47628e0801f2437cbe369e0fa8beb0de191d43dcb2f8cbb6f1bf8d79a5db0f4e352f38fe7280124475710a
@fanquake fanquake mentioned this pull request Oct 24, 2018
laanwj added a commit that referenced this pull request Dec 6, 2018
…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
@fanquake
Copy link
Member

fanquake commented Dec 9, 2018

Backported in #14889.

deadalnix pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request May 11, 2020
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
ftrader pushed a commit to bitcoin-cash-node/bitcoin-cash-node that referenced this pull request Aug 17, 2020
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
Munkybooty pushed a commit to Munkybooty/dash that referenced this pull request Jul 21, 2021
…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
kwvg added a commit to kwvg/dash that referenced this pull request Aug 5, 2021
kwvg added a commit to kwvg/dash that referenced this pull request Aug 9, 2021
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants