19 const std::string descriptor(buffer.begin(), buffer.end());
22 for (
const bool require_checksum : {
true,
false}) {
23 const auto desc =
Parse(descriptor, signing_provider,
error, require_checksum);
25 (void)desc->ToString();
26 (void)desc->IsRange();
27 (void)desc->IsSolvable();
void SelectParams(const std::string &network)
Sets the params returned by Params() to those for the given chain name.
static const std::string MAIN
Chain name strings.
Users of this module must hold an ECCVerifyHandle.
std::unique_ptr< Descriptor > Parse(const std::string &descriptor, FlatSigningProvider &out, std::string &error, bool require_checksum)
Parse a descriptor string.
FUZZ_TARGET_INIT(descriptor_parse, initialize_descriptor_parse)
void initialize_descriptor_parse()
void ECC_Start()
Initialize the elliptic curve support.
bool error(const char *fmt, const Args &... args)