5 #include <chainparams.h>
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 ChainType chain)
Sets the params returned by Params() to those for the given chain type.
static UniValue Parse(std::string_view raw)
Parse string to UniValue or throw runtime_error if string contains invalid JSON.
FUZZ_TARGET_INIT(descriptor_parse, initialize_descriptor_parse)
void initialize_descriptor_parse()
bool error(const char *fmt, const Args &... args)