5#ifndef BITCOIN_WALLET_WALLETUTIL_H
6#define BITCOIN_WALLET_WALLETUTIL_H
99 throw std::ios_base::failure(
"Invalid descriptor: " +
error);
104 std::string descriptor_str;
105 SER_WRITE(obj, descriptor_str = obj.descriptor->ToString());
106 READWRITE(descriptor_str, obj.creation_time, obj.next_index,
107 obj.range_start, obj.range_end);
108 SER_READ(obj, obj.DeserializeDescriptor(descriptor_str));
113 uint64_t creation_time_, int32_t range_start_,
114 int32_t range_end_, int32_t next_index_)
Cache for single descriptor's derived extended pubkeys.
Descriptor with some wallet metadata.
SERIALIZE_METHODS(WalletDescriptor, obj)
void DeserializeDescriptor(const std::string &str)
WalletDescriptor(std::shared_ptr< Descriptor > descriptor_, uint64_t creation_time_, int32_t range_start_, int32_t range_end_, int32_t next_index_)
std::shared_ptr< Descriptor > descriptor
Path class wrapper to block calls to the fs::path(std::string) implicit constructor and the fs::path:...
static UniValue Parse(std::string_view raw)
Parse string to UniValue or throw runtime_error if string contains invalid JSON.
bool error(const char *fmt, const Args &...args)
#define SER_WRITE(obj, code)
#define SER_READ(obj, code)
@ WALLET_FLAG_DISABLE_PRIVATE_KEYS
@ WALLET_FLAG_AVOID_REUSE
@ WALLET_FLAG_KEY_ORIGIN_METADATA
@ WALLET_FLAG_DESCRIPTORS
Indicate that this wallet supports DescriptorScriptPubKeyMan.
@ WALLET_FLAG_BLANK_WALLET
Flag set when a wallet contains no HD seed and no private keys, scripts, addresses,...
WalletFeature
(client) version numbers for particular wallet features
@ FEATURE_PRE_SPLIT_KEYPOOL
fs::path GetWalletDir()
Get the path of the wallet directory.
std::vector< fs::path > ListWalletDir()
Get wallets in wallet directory.