MCPcopy Create free account
hub / github.com/ElementsProject/elements / CombineSignatures

Function CombineSignatures

src/test/script_tests.cpp:1202–1209  ·  view source on GitHub ↗

Wrapper around ProduceSignature to combine two scriptsigs */

Source from the content-addressed store, hash-verified

1200
1201/* Wrapper around ProduceSignature to combine two scriptsigs */
1202SignatureData CombineSignatures(const CTxOut& txout, const CMutableTransaction& tx, const SignatureData& scriptSig1, const SignatureData& scriptSig2)
1203{
1204 SignatureData data;
1205 data.MergeSignatureData(scriptSig1);
1206 data.MergeSignatureData(scriptSig2);
1207 ProduceSignature(DUMMY_SIGNING_PROVIDER, MutableTransactionSignatureCreator(&tx, 0, txout.nValue, SIGHASH_DEFAULT), txout.scriptPubKey, data);
1208 return data;
1209}
1210
1211BOOST_AUTO_TEST_CASE(script_combineSigs)
1212{

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.70

Calls 3

ProduceSignatureFunction · 0.85
MergeSignatureDataMethod · 0.80

Tested by

no test coverage detected