13 #include <boost/test/unit_test.hpp> 27 std::vector<CKey> keys(2);
28 std::vector<CPubKey> pubkeys;
29 for (
CKey& key : keys) {
31 pubkeys.emplace_back(key.GetPubKey());
40 keyman.AddCScript(multisig_script);
46 std::unique_ptr<interfaces::Chain>& chain =
m_node.
chain;
53 std::string desc_str =
"tr(" +
EncodeSecret(key_internal) +
",pk(" +
HexStr(key_scriptpath.GetPubKey()) +
"))";
56 auto signprov_keypath_spendable = spk_man1->GetSigningProvider(key_internal.GetPubKey());
62 auto signprov_keypath_nums_h = spk_man2->GetSigningProvider(
XOnlyPubKey::NUMS_H.GetEvenCorrespondingCPubKey());
CScript GetScriptForMultisig(int nRequired, const std::vector< CPubKey > &keys)
Generate a multisig script.
std::unique_ptr< interfaces::Chain > chain
wallet::ScriptPubKeyMan * CreateDescriptor(CWallet &keystore, const std::string &desc_str, const bool success)
static const XOnlyPubKey NUMS_H
Nothing Up My Sleeve point H Used as an internal key for provably disabling the key path spend see BI...
CKey GenerateRandomKey(bool compressed) noexcept
BOOST_FIXTURE_TEST_SUITE(cuckoocache_tests, BasicTestingSetup)
Test Suite for CuckooCache.
BOOST_AUTO_TEST_SUITE_END()
A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
CScript GetScriptForDestination(const CTxDestination &dest)
Generate a Bitcoin scriptPubKey for the given CTxDestination.
std::unique_ptr< WalletDatabase > CreateMockableWalletDatabase(MockableData records)
Serialized script, used inside transaction inputs and outputs.
std::string HexStr(const Span< const uint8_t > s)
Convert a span of bytes to a lower-case hexadecimal string.
An encapsulated private key.
BOOST_AUTO_TEST_CASE(bnb_search_test)
std::string EncodeSecret(const CKey &key)
#define BOOST_CHECK(expr)