15 #include <boost/test/unit_test.hpp>
19 static std::vector<unsigned char>
22 std::vector<unsigned char> sSerialized(s.
begin(), s.
end());
47 std::vector<CPubKey> keys;
48 for (
int i = 0; i < 3; i++)
An encapsulated private key.
void MakeNewKey(bool fCompressed)
Generate a new private key using a cryptographic PRNG.
CPubKey GetPubKey() const
Compute the public key from a private key.
Serialized script, used inside transaction inputs and outputs.
unsigned int GetSigOpCount(bool fAccurate) const
Pre-version-0.6, Bitcoin always counted CHECKMULTISIGs as 20 sigops.
A reference to a CScript: the Hash160 of its serialization (see script.h)
BOOST_AUTO_TEST_SUITE_END()
#define BOOST_FIXTURE_TEST_SUITE(a, b)
#define BOOST_CHECK_EQUAL(v1, v2)
std::vector< unsigned char > ToByteVector(const T &in)
void Serialize(Stream &s, char a)
BOOST_AUTO_TEST_CASE(GetSigOpCount)
CScript GetScriptForMultisig(int nRequired, const std::vector< CPubKey > &keys)
Generate a multisig script.
CScript GetScriptForDestination(const CTxDestination &dest)
Generate a PIVX scriptPubKey for the given CTxDestination.