MCPcopy Create free account
hub / github.com/Bitcoin-ABC/bitcoin-abc / CombineSignatures

Function CombineSignatures

src/test/script_tests.cpp:2710–2721  ·  view source on GitHub ↗

Wrapper around ProduceSignature to combine two scriptsigs */

Source from the content-addressed store, hash-verified

2708
2709/* Wrapper around ProduceSignature to combine two scriptsigs */
2710SignatureData CombineSignatures(const CTxOut &txout,
2711 const CMutableTransaction &tx,
2712 const SignatureData &scriptSig1,
2713 const SignatureData &scriptSig2) {
2714 SignatureData data;
2715 data.MergeSignatureData(scriptSig1);
2716 data.MergeSignatureData(scriptSig2);
2717 ProduceSignature(DUMMY_SIGNING_PROVIDER,
2718 MutableTransactionSignatureCreator(&tx, 0, txout.nValue),
2719 txout.scriptPubKey, data);
2720 return data;
2721}
2722
2723BOOST_AUTO_TEST_CASE(script_combineSigs) {
2724 // Test the ProduceSignature's ability to combine signatures function

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.70

Calls 3

ProduceSignatureFunction · 0.85
MergeSignatureDataMethod · 0.80

Tested by

no test coverage detected