MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / Parse

Function Parse

src/script/descriptor.cpp:560–566  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

558} // namespace
559
560std::unique_ptr<Descriptor> Parse(const std::string& descriptor, FlatSigningProvider& out)
561{
562 Span<const char> sp(descriptor.data(), descriptor.size());
563 auto ret = ParseScript(sp, ParseScriptContext::TOP, out);
564 if (sp.size() == 0 && ret) return ret;
565 return nullptr;
566}

Callers 3

CheckUnparsableFunction · 0.85
CheckFunction · 0.85
scantxoutsetFunction · 0.85

Calls 3

ParseScriptFunction · 0.70
dataMethod · 0.45
sizeMethod · 0.45

Tested by 2

CheckUnparsableFunction · 0.68
CheckFunction · 0.68