5 #ifndef BITCOIN_WALLET_WALLETUTIL_H 6 #define BITCOIN_WALLET_WALLETUTIL_H 113 template <
typename Stream,
typename Operation>
115 if (ser_action.ForRead()) {
120 descriptor =
Parse(desc, keys, error,
true);
122 throw std::ios_base::failure(
"Invalid descriptor: " + error);
135 uint64_t creation_time_, int32_t range_start_,
136 int32_t range_end_, int32_t next_index_)
137 : descriptor(descriptor_), creation_time(creation_time_),
138 range_start(range_start_), range_end(range_end_),
139 next_index(next_index_) {}
142 #endif // BITCOIN_WALLET_WALLETUTIL_H const fs::path & GetPath() const
Get wallet absolute path.
fs::path GetWalletDir()
Get the path of the wallet directory.
std::shared_ptr< Descriptor > descriptor
std::vector< fs::path > ListWalletDir()
Get wallets in wallet directory.
void SerializationOp(Stream &s, Operation ser_action)
bool Exists() const
Return whether the wallet exists.
WalletFeature
(client) version numbers for particular wallet features
std::unique_ptr< Descriptor > Parse(const std::string &descriptor, FlatSigningProvider &out, std::string &error, bool require_checksum)
Parse a descriptor string.
const std::string & GetName() const
Get wallet name.
Flag set when a wallet contains no HD seed and no private keys, scripts, addresses, and other watch only things, and is therefore "blank.".
Descriptor with some wallet metadata.
Cache for single descriptor's derived extended pubkeys.
WalletDescriptor(std::shared_ptr< Descriptor > descriptor_, uint64_t creation_time_, int32_t range_start_, int32_t range_end_, int32_t next_index_)
The WalletLocation class provides wallet information.
Indicate that this wallet supports DescriptorScriptPubKeyMan.
bool error(const char *fmt, const Args &... args)