Github-Pull: #14424 Rebased-From: 2f6b466aeb6d4c88ab2e0e8b2a402be0743608b5
[0.17] Backport #14424 (Stop requiring imported pubkey to sign non-PKH schemes) #14889
pull meshcollider wants to merge 1 commits into bitcoin:0.17 from meshcollider:201812_backport_14424 changing 1 files +7 −7-
meshcollider commented at 7:14 PM on December 6, 2018: contributor
- meshcollider added the label Wallet on Dec 6, 2018
- meshcollider added the label Backport on Dec 6, 2018
- meshcollider added this to the milestone 0.17.2 on Dec 6, 2018
- meshcollider removed this from the milestone 0.17.2 on Dec 6, 2018
- meshcollider added this to the milestone 0.17.1 on Dec 6, 2018
- meshcollider requested review from sipa on Dec 6, 2018
-
laanwj commented at 8:31 PM on December 6, 2018: member
looks like your rebased-from header is not correct (should be
2f6b466aeb6d4c88ab2e0e8b2a402be0743608b5instead of2f6b466aeb6d4c88ab2e0e8b2a402be0743608b4)Apart from that, utACK
Difference from cherry-picked commit is:
diff --git a/src/script/sign.cpp b/src/script/sign.cpp index a95a8609b3cf8f51e48c81199a764a480dc34c73..86b42d874f4f68f837c277df3358a00cdd60e1c2 100644 --- a/src/script/sign.cpp +++ b/src/script/sign.cpp @@ -77,7 +77,10 @@ static bool CreateSig(const BaseSignatureCreator& creator, SignatureData& sigdat sig_out = it->second.second; return true; } - sigdata.misc_pubkeys.emplace(keyid, pubkey); + KeyOriginInfo info; + if (provider.GetKeyOrigin(keyid, info)) { + sigdata.misc_pubkeys.emplace(keyid, std::make_pair(pubkey, std::move(info))); + } if (creator.CreateSig(provider, sig_out, keyid, scriptcode, sigversion)) { auto i = sigdata.signatures.emplace(keyid, SigPair(pubkey, sig_out)); assert(i.second);This makes sense, as the key origin code is different from master to 0.17.
-
89a9a9d938
Stop requiring imported pubkey to sign non-PKH schemes
Github-Pull: #14424 Rebased-From: 2f6b466aeb6d4c88ab2e0e8b2a402be0743608b5
-
meshcollider commented at 9:32 PM on December 6, 2018: contributor
Fixed the commit message, thanks @laanwj
- laanwj merged this on Dec 6, 2018
- laanwj closed this on Dec 6, 2018
- laanwj referenced this in commit c6e4a1fca5 on Dec 6, 2018
-
gmaxwell commented at 11:12 PM on December 6, 2018: contributor
ACK (looks like it works to me)
- meshcollider deleted the branch on Sep 5, 2019
- DrahtBot locked this on Dec 16, 2021
Contributors
Milestone
0.17.1