![]() |
Bitcoin Core 30.99.0
P2P Digital Currency
|
#include <test/fuzz/util/descriptor.h>#include <key.h>#include <key_io.h>#include <pubkey.h>#include <span.h>#include <util/strencodings.h>#include <ranges>#include <stack>#include <vector>Go to the source code of this file.
Functions | |
| bool | HasDeepDerivPath (std::span< const uint8_t > buff, const int max_depth) |
| Whether the buffer, if it represents a valid descriptor, contains a derivation path deeper than a given maximum depth. More... | |
| bool | HasTooManySubFrag (std::span< const uint8_t > buff, const int max_subs, const size_t max_nested_subs) |
| Whether the buffer, if it represents a valid descriptor, contains a fragment with more sub-fragments than the given maximum. More... | |
| bool | HasTooManyWrappers (std::span< const uint8_t > buff, const int max_wrappers) |
| Whether the buffer, if it represents a valid descriptor, contains a fragment with more wrappers than the given maximum. More... | |
| bool | HasTooLargeLeafSize (std::span< const uint8_t > buff, const uint32_t max_leaf_size) |
| Whether the expanded buffer (after calling GetDescriptor() in MockedDescriptorConverter) has a leaf size too large. More... | |
| bool HasDeepDerivPath | ( | std::span< const uint8_t > | buff, |
| 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 85 of file descriptor.cpp.
| bool HasTooLargeLeafSize | ( | std::span< const uint8_t > | buff, |
| const uint32_t | max_leaf_size | ||
| ) |
Whether the expanded buffer (after calling GetDescriptor() in MockedDescriptorConverter) has a leaf size too large.
Definition at line 155 of file descriptor.cpp.
| bool HasTooManySubFrag | ( | std::span< const uint8_t > | buff, |
| const int | max_subs, | ||
| const size_t | max_nested_subs | ||
| ) |
Whether the buffer, if it represents a valid descriptor, contains a fragment with more sub-fragments than the given maximum.
Definition at line 99 of file descriptor.cpp.
| bool HasTooManyWrappers | ( | std::span< const uint8_t > | buff, |
| const int | max_wrappers | ||
| ) |
Whether the buffer, if it represents a valid descriptor, contains a fragment with more wrappers than the given maximum.
Definition at line 123 of file descriptor.cpp.