mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-05-30 15:54:03 +02:00
Merge bitcoin/bitcoin#22275: A few follow-ups for taproot signing
08f57a0057Assert that IsComplete() in GetSpendData() (Pieter Wuille)d8f4b976d5Remove default nHashTypeIn arguments to MutableTransactionSignatureCreator (Pieter Wuille)c7048aae95Simplify SignTransaction precomputation loop (Pieter Wuille)addb9b5a71Improve comments in taproot signing logic (Pieter Wuille) Pull request description: This addresses a few review comments from #21365 that were left at the time of merge (as well as some from #22166 applying to the commit it shared with #21365). I do not think any are blockers for a 22.0 release. ACKs for top commit: theStack: re-ACK08f57a0057🌴 Zero-1729: crACK08f57a0jonatack: Code review ACK08f57a0057per `git range-diffe9d6eb19336670 08f57a0` followed by re-code review per commit to swap context back into memory and debug build/run unit tests + feature_taproot.py as a sanity check Tree-SHA512: 968750109ba8d6faf3016035a38f81c6aefb724c632a3cab0bbf43cf31b9d187b6b0fddd8772768f57338df11eb07ab9c4c6dacdf3cf35b71f29699c67a301ea
This commit is contained in:
@@ -1160,7 +1160,7 @@ SignatureData CombineSignatures(const CTxOut& txout, const CMutableTransaction&
|
||||
SignatureData data;
|
||||
data.MergeSignatureData(scriptSig1);
|
||||
data.MergeSignatureData(scriptSig2);
|
||||
ProduceSignature(DUMMY_SIGNING_PROVIDER, MutableTransactionSignatureCreator(&tx, 0, txout.nValue), txout.scriptPubKey, data);
|
||||
ProduceSignature(DUMMY_SIGNING_PROVIDER, MutableTransactionSignatureCreator(&tx, 0, txout.nValue, SIGHASH_DEFAULT), txout.scriptPubKey, data);
|
||||
return data;
|
||||
}
|
||||
|
||||
|
||||
@@ -561,7 +561,7 @@ SignatureData CombineSignatures(const CMutableTransaction& input1, const CMutabl
|
||||
SignatureData sigdata;
|
||||
sigdata = DataFromTransaction(input1, 0, tx->vout[0]);
|
||||
sigdata.MergeSignatureData(DataFromTransaction(input2, 0, tx->vout[0]));
|
||||
ProduceSignature(DUMMY_SIGNING_PROVIDER, MutableTransactionSignatureCreator(&input1, 0, tx->vout[0].nValue), tx->vout[0].scriptPubKey, sigdata);
|
||||
ProduceSignature(DUMMY_SIGNING_PROVIDER, MutableTransactionSignatureCreator(&input1, 0, tx->vout[0].nValue, SIGHASH_ALL), tx->vout[0].scriptPubKey, sigdata);
|
||||
return sigdata;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user