MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / CombineSignatures

Function CombineSignatures

src/test/script_tests.cpp:1262–1269  ·  view source on GitHub ↗

Wrapper around ProduceSignature to combine two scriptsigs */

Source from the content-addressed store, hash-verified

1260
1261/* Wrapper around ProduceSignature to combine two scriptsigs */
1262SignatureData CombineSignatures(const CTxOut& txout, const CMutableTransaction& tx, const SignatureData& scriptSig1, const SignatureData& scriptSig2)
1263{
1264 SignatureData data;
1265 data.MergeSignatureData(scriptSig1);
1266 data.MergeSignatureData(scriptSig2);
1267 ProduceSignature(DUMMY_SIGNING_PROVIDER, MutableTransactionSignatureCreator(tx, 0, txout.nValue, {.sighash_type = SIGHASH_DEFAULT}), txout.scriptPubKey, data);
1268 return data;
1269}
1270
1271BOOST_AUTO_TEST_CASE(script_combineSigs)
1272{

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.70

Calls 3

ProduceSignatureFunction · 0.85
MergeSignatureDataMethod · 0.80

Tested by

no test coverage detected