25 const uint32_t key_exp_pos = fuzzed_data_provider.
ConsumeIntegral<uint32_t>();
32 const uint32_t der_index = fuzzed_data_provider.
ConsumeIntegral<uint32_t>();
37 assert(xpub == xpub_fetched);
Cache for single descriptor's derived extended pubkeys.
bool GetCachedParentExtPubKey(uint32_t key_exp_pos, CExtPubKey &xpub) const
Retrieve a cached parent xpub.
std::unordered_map< uint32_t, ExtPubKeyMap > GetCachedDerivedExtPubKeys() const
Retrieve all cached derived xpubs.
void CacheDerivedExtPubKey(uint32_t key_exp_pos, uint32_t der_index, const CExtPubKey &xpub)
Cache an xpub derived at an index.
ExtPubKeyMap GetCachedParentExtPubKeys() const
Retrieve all cached parent xpubs.
void CacheParentExtPubKey(uint32_t key_exp_pos, const CExtPubKey &xpub)
Cache a parent xpub.
bool GetCachedDerivedExtPubKey(uint32_t key_exp_pos, uint32_t der_index, CExtPubKey &xpub) const
Retrieve a cached xpub derived at an index.
std::vector< T > ConsumeBytes(size_t num_bytes)
#define LIMITED_WHILE(condition, limit)
Can be used to limit a theoretically unbounded loop.
const unsigned int BIP32_EXTKEY_SIZE
FUZZ_TARGET(script_descriptor_cache)
void Decode(const unsigned char code[BIP32_EXTKEY_SIZE])