Changeset View
Changeset View
Standalone View
Standalone View
src/test/script_tests.cpp
Show First 20 Lines • Show All 2,712 Lines • ▼ Show 20 Lines | SignatureData CombineSignatures(const CTxOut &txout, | ||||
ProduceSignature(DUMMY_SIGNING_PROVIDER, | ProduceSignature(DUMMY_SIGNING_PROVIDER, | ||||
MutableTransactionSignatureCreator(&tx, 0, txout.nValue), | MutableTransactionSignatureCreator(&tx, 0, txout.nValue), | ||||
txout.scriptPubKey, data); | txout.scriptPubKey, data); | ||||
return data; | return data; | ||||
} | } | ||||
BOOST_AUTO_TEST_CASE(script_combineSigs) { | BOOST_AUTO_TEST_CASE(script_combineSigs) { | ||||
// Test the ProduceSignature's ability to combine signatures function | // Test the ProduceSignature's ability to combine signatures function | ||||
CBasicKeyStore keystore; | FillableSigningProvider keystore; | ||||
std::vector<CKey> keys; | std::vector<CKey> keys; | ||||
std::vector<CPubKey> pubkeys; | std::vector<CPubKey> pubkeys; | ||||
for (int i = 0; i < 3; i++) { | for (int i = 0; i < 3; i++) { | ||||
CKey key; | CKey key; | ||||
key.MakeNewKey(i % 2 == 1); | key.MakeNewKey(i % 2 == 1); | ||||
keys.push_back(key); | keys.push_back(key); | ||||
pubkeys.push_back(key.GetPubKey()); | pubkeys.push_back(key.GetPubKey()); | ||||
keystore.AddKey(key); | keystore.AddKey(key); | ||||
▲ Show 20 Lines • Show All 501 Lines • Show Last 20 Lines |