Wrapper around ProduceSignature to combine two scriptsigs */
| 2708 | |
| 2709 | /* Wrapper around ProduceSignature to combine two scriptsigs */ |
| 2710 | SignatureData 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 | |
| 2723 | BOOST_AUTO_TEST_CASE(script_combineSigs) { |
| 2724 | // Test the ProduceSignature's ability to combine signatures function |
no test coverage detected