| 237 | } |
| 238 | |
| 239 | bool WalletBatch::WriteDescriptorDerivedCache(const CExtPubKey& xpub, const uint256& desc_id, uint32_t key_exp_index, uint32_t der_index) |
| 240 | { |
| 241 | std::vector<unsigned char> ser_xpub(BIP32_EXTKEY_SIZE); |
| 242 | xpub.Encode(ser_xpub.data()); |
| 243 | return WriteIC(std::make_pair(std::make_pair(DBKeys::WALLETDESCRIPTORCACHE, desc_id), std::make_pair(key_exp_index, der_index)), ser_xpub); |
| 244 | } |
| 245 | |
| 246 | bool WalletBatch::WriteDescriptorParentCache(const CExtPubKey& xpub, const uint256& desc_id, uint32_t key_exp_index) |
| 247 | { |