Bitcoin Core  27.99.0
P2P Digital Currency
Classes | Functions | Variables
descriptor.h File Reference
#include <key_io.h>
#include <util/strencodings.h>
#include <script/descriptor.h>
#include <test/fuzz/fuzz.h>
#include <functional>
Include dependency graph for descriptor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MockedDescriptorConverter
 Converts a mocked descriptor string to a valid one. More...
 

Functions

bool HasDeepDerivPath (const FuzzBufferType &buff, const int max_depth=MAX_DEPTH)
 Whether the buffer, if it represents a valid descriptor, contains a derivation path deeper than a given maximum depth. More...
 

Variables

constexpr int MAX_DEPTH {2}
 Default maximum number of derivation indexes in a single derivation path when limiting its depth. More...
 

Function Documentation

◆ HasDeepDerivPath()

bool HasDeepDerivPath ( const FuzzBufferType buff,
const int  max_depth = MAX_DEPTH 
)

Whether the buffer, if it represents a valid descriptor, contains a derivation path deeper than a given maximum depth.

Note this may also be hit for deriv paths in origins.

Definition at line 74 of file descriptor.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ MAX_DEPTH

constexpr int MAX_DEPTH {2}
constexpr

Default maximum number of derivation indexes in a single derivation path when limiting its depth.

Definition at line 50 of file descriptor.h.