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