 |
Bitcoin Core
21.99.0
P2P Digital Currency
|
Go to the documentation of this file.
9 #include <test/util/setup_common.h>
13 #include <boost/test/unit_test.hpp>
22 for (
int i = 0; i < 2; i++) {
30 std::unique_ptr<interfaces::Chain>& chain =
m_node.
chain;
369 scriptPubKey.
clear();
383 scriptPubKey.
clear();
397 scriptPubKey.
clear();
411 scriptPubKey.
clear();
std::vector< unsigned char > ParseHex(const char *psz)
std::unique_ptr< WalletDatabase > CreateDummyWalletDatabase()
Return object for accessing dummy database with no read/write capabilities.
void MakeNewKey(bool fCompressed)
Generate a new private key using a cryptographic PRNG.
CScript GetScriptForDestination(const CTxDestination &dest)
Generate a Bitcoin scriptPubKey for the given CTxDestination.
std::vector< unsigned char > ToByteVector(const T &in)
#define BOOST_FIXTURE_TEST_SUITE(a, b)
std::unique_ptr< interfaces::Chain > chain
virtual bool AddKey(const CKey &key)
isminetype
IsMine() return codes, which depend on ScriptPubKeyMan implementation.
CScript GetScriptForRawPubKey(const CPubKey &pubKey)
Generate a P2PK script for the given pubkey.
CScript GetScriptForMultisig(int nRequired, const std::vector< CPubKey > &keys)
Generate a multisig script.
bool AddCScript(const CScript &redeemScript) override
CPubKey GetPubKey() const
Compute the public key from a private key.
Serialized script, used inside transaction inputs and outputs.
isminetype IsMine(const CScript &script) const override
LegacyScriptPubKeyMan * GetLegacyScriptPubKeyMan() const
Get the LegacyScriptPubKeyMan which is used for all types, internal, and external.
void SetupLegacyScriptPubKeyMan()
Make a LegacyScriptPubKeyMan and set it for all types, internal, and external.
An encapsulated public key.
An encapsulated private key.
A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
BOOST_AUTO_TEST_CASE(ismine_standard)
RecursiveMutex cs_KeyStore
#define BOOST_CHECK(expr)
#define BOOST_AUTO_TEST_SUITE_END()
#define BOOST_CHECK_EQUAL(v1, v2)