 |
Bitcoin Core
21.99.0
P2P Digital Currency
|
Go to the documentation of this file.
5 #ifndef BITCOIN_WALLET_WALLETUTIL_H
6 #define BITCOIN_WALLET_WALLETUTIL_H
88 throw std::ios_base::failure(
"Invalid descriptor: " +
error);
94 std::string descriptor_str;
95 SER_WRITE(obj, descriptor_str = obj.descriptor->ToString());
96 READWRITE(descriptor_str, obj.creation_time, obj.next_index, obj.range_start, obj.range_end);
97 SER_READ(obj, obj.DeserializeDescriptor(descriptor_str));
104 #endif // BITCOIN_WALLET_WALLETUTIL_H
std::unique_ptr< Descriptor > Parse(const std::string &descriptor, FlatSigningProvider &out, std::string &error, bool require_checksum)
Parse a descriptor string.
WalletDescriptor(std::shared_ptr< Descriptor > descriptor, uint64_t creation_time, int32_t range_start, int32_t range_end, int32_t next_index)
bool IsFeatureSupported(int wallet_version, int feature_version)
@ WALLET_FLAG_EXTERNAL_SIGNER
Indicates that the wallet needs an external signer.
WalletFeature GetClosestWalletFeature(int version)
@ FEATURE_PRE_SPLIT_KEYPOOL
void DeserializeDescriptor(const std::string &str)
@ WALLET_FLAG_AVOID_REUSE
fs::path GetWalletDir()
Get the path of the wallet directory.
@ WALLET_FLAG_BLANK_WALLET
Flag set when a wallet contains no HD seed and no private keys, scripts, addresses,...
Cache for single descriptor's derived extended pubkeys.
@ WALLET_FLAG_DISABLE_PRIVATE_KEYS
#define SER_WRITE(obj, code)
Descriptor with some wallet metadata.
WalletFeature
(client) version numbers for particular wallet features
bool error(const char *fmt, const Args &... args)
#define SER_READ(obj, code)
std::shared_ptr< Descriptor > descriptor
@ WALLET_FLAG_KEY_ORIGIN_METADATA
SERIALIZE_METHODS(WalletDescriptor, obj)
@ WALLET_FLAG_DESCRIPTORS
Indicate that this wallet supports DescriptorScriptPubKeyMan.