| 244 | } |
| 245 | |
| 246 | bool WalletBatch::WriteDescriptorDerivedCache(const CExtPubKey& xpub, const uint256& desc_id, uint32_t key_exp_index, uint32_t der_index) |
| 247 | { |
| 248 | std::vector<unsigned char> ser_xpub(BIP32_EXTKEY_SIZE); |
| 249 | xpub.Encode(ser_xpub.data()); |
| 250 | return WriteIC(std::make_pair(std::make_pair(DBKeys::WALLETDESCRIPTORCACHE, desc_id), std::make_pair(key_exp_index, der_index)), ser_xpub); |
| 251 | } |
| 252 | |
| 253 | bool WalletBatch::WriteDescriptorParentCache(const CExtPubKey& xpub, const uint256& desc_id, uint32_t key_exp_index) |
| 254 | { |