16#include <boost/test/unit_test.hpp>
27 for (
int i = 0; i < 2; i++) {
34 std::unique_ptr<interfaces::Chain>& chain =
m_node.
chain;
CScript GetScriptForDestination(const CTxDestination &dest)
Generate a Bitcoin scriptPubKey for the given CTxDestination.
#define Assert(val)
Identity function.
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.
An encapsulated public key.
Serialized script, used inside transaction inputs and outputs.
Utility class to construct Taproot outputs from internal key and script tree.
TaprootBuilder & Finalize(const XOnlyPubKey &internal_key)
Finalize the construction.
A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
BOOST_FIXTURE_TEST_SUITE(cuckoocache_tests, BasicTestingSetup)
Test Suite for CuckooCache.
BOOST_AUTO_TEST_SUITE_END()
CKey GenerateRandomKey(bool compressed) noexcept
std::string EncodeSecret(const CKey &key)
""_hex is a compile-time user-defined literal returning a std::array<std::byte>, equivalent to ParseH...
wallet::DescriptorScriptPubKeyMan * CreateDescriptor(CWallet &keystore, const std::string &desc_str, const bool success)
BOOST_AUTO_TEST_CASE(bnb_test)
#define BOOST_CHECK_EQUAL(v1, v2)
#define BOOST_CHECK(expr)
CScript GetScriptForMultisig(int nRequired, const std::vector< CPubKey > &keys)
Generate a multisig script.
CScript GetScriptForRawPubKey(const CPubKey &pubKey)
Generate a P2PK script for the given pubkey.
std::unique_ptr< interfaces::Chain > chain
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.
is a home for public enum and struct type definitions that are used by internally by wallet code,...