5#include <chainparams.h>
8#include <test/util/setup_common.h>
12#include <boost/test/unit_test.hpp>
24 std::vector<CKey> keys(2);
25 std::vector<CPubKey> pubkeys;
26 for (
CKey &key : keys) {
28 pubkeys.emplace_back(key.GetPubKey());
An encapsulated secp256k1 private key.
Serialized script, used inside transaction inputs and outputs.
A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
#define BOOST_CHECK(expr)
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
BOOST_AUTO_TEST_CASE(CanProvide)
CScript GetScriptForMultisig(int nRequired, const std::vector< CPubKey > &keys)
Generate a multisig script.
CScript GetScriptForDestination(const CTxDestination &dest)
Generate a Bitcoin scriptPubKey for the given CTxDestination.
std::unique_ptr< WalletDatabase > CreateDummyWalletDatabase()
Return object for accessing dummy database with no read/write capabilities.