![]() |
Bitcoin Core
25.99.0
P2P Digital Currency
|
#include <chainparams.h>
#include <key_io.h>
#include <pubkey.h>
#include <script/descriptor.h>
#include <test/fuzz/fuzz.h>
#include <util/chaintype.h>
#include <util/strencodings.h>
Go to the source code of this file.
Classes | |
class | MockedDescriptorConverter |
Converts a mocked descriptor string to a valid one. More... | |
Functions | |
static void | TestDescriptor (const Descriptor &desc, FlatSigningProvider &sig_provider, std::string &dummy) |
Test a successfully parsed descriptor. More... | |
void | initialize_descriptor_parse () |
void | initialize_mocked_descriptor_parse () |
FUZZ_TARGET (mocked_descriptor_parse,.init=initialize_mocked_descriptor_parse) | |
FUZZ_TARGET (descriptor_parse,.init=initialize_descriptor_parse) | |
Variables | |
static constexpr uint8_t | KEY_TYPES_COUNT {6} |
Types are raw (un)compressed pubkeys, raw xonly pubkeys, raw privkeys (WIF), xpubs, xprvs. More... | |
static constexpr size_t | TOTAL_KEYS_GENERATED {std::numeric_limits<uint8_t>::max() + 1} |
How many keys we'll generate in total. More... | |
MockedDescriptorConverter | MOCKED_DESC_CONVERTER |
The converter of mocked descriptors, needs to be initialized when the target is. More... | |
FUZZ_TARGET | ( | descriptor_parse | , |
. | init = initialize_descriptor_parse |
||
) |
FUZZ_TARGET | ( | mocked_descriptor_parse | , |
. | init = initialize_mocked_descriptor_parse |
||
) |
void initialize_descriptor_parse | ( | ) |
Definition at line 150 of file descriptor_parse.cpp.
void initialize_mocked_descriptor_parse | ( | ) |
|
static |
Test a successfully parsed descriptor.
Definition at line 112 of file descriptor_parse.cpp.
|
staticconstexpr |
Types are raw (un)compressed pubkeys, raw xonly pubkeys, raw privkeys (WIF), xpubs, xprvs.
Definition at line 14 of file descriptor_parse.cpp.
MockedDescriptorConverter MOCKED_DESC_CONVERTER |
The converter of mocked descriptors, needs to be initialized when the target is.
Definition at line 109 of file descriptor_parse.cpp.
|
staticconstexpr |
How many keys we'll generate in total.
Definition at line 16 of file descriptor_parse.cpp.