diff options
author | Andrew Chow <achow101-github@achow101.com> | 2019-07-10 16:02:43 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2020-04-23 13:59:48 -0400 |
commit | 46dfb99768e7d03a3cf552812d5b41ceaebc06be (patch) | |
tree | 8d0eabe1d57db6680ed436df27d43ebadfeda365 /src/wallet/walletdb.h | |
parent | 4cb9b69be031e1dc65d8964794781b347fd948f5 (diff) | |
download | bitcoin-46dfb99768e7d03a3cf552812d5b41ceaebc06be.tar.xz |
Implement writing descriptorkeys, descriptorckeys, and descriptors to wallet file
Diffstat (limited to 'src/wallet/walletdb.h')
-rw-r--r-- | src/wallet/walletdb.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wallet/walletdb.h b/src/wallet/walletdb.h index 75fb12c9df..df41897216 100644 --- a/src/wallet/walletdb.h +++ b/src/wallet/walletdb.h @@ -9,6 +9,7 @@ #include <amount.h> #include <script/sign.h> #include <wallet/db.h> +#include <wallet/walletutil.h> #include <key.h> #include <stdint.h> @@ -245,6 +246,10 @@ public: bool WriteMinVersion(int nVersion); + bool WriteDescriptorKey(const uint256& desc_id, const CPubKey& pubkey, const CPrivKey& privkey); + bool WriteCryptedDescriptorKey(const uint256& desc_id, const CPubKey& pubkey, const std::vector<unsigned char>& secret); + bool WriteDescriptor(const uint256& desc_id, const WalletDescriptor& descriptor); + /// Write destination data key,value tuple to database bool WriteDestData(const std::string &address, const std::string &key, const std::string &value); /// Erase destination data tuple from wallet database |