Parses a Miniscript from its textual (policy‐language) representation.
Synopsis
Declared in <script/miniscript.h>
template<typename Ctx>
std::optional<Node<Ctx::Key>>
FromString(
std::string const& str,
Ctx const& ctx);
Return Value
The parsed node tree, or std::nullopt on failure.
Parameters
Name |
Description |
str |
The Miniscript string to parse. |
ctx |
Context providing key parsing and the script context. |
Created with MrDocs