Decodes a Miniscript from a Bitcoin Script.
Declared in <script/miniscript.h>
template<typename Ctx>
std::optional<Node<Ctx::Key>>
FromScript(
CScript const& script,
Ctx const& ctx);
The decoded node tree, or std::nullopt on failure.
| Name | Description |
|---|---|
| script | The CScript to decode. |
| ctx | Context providing key decoding and the script context. |