miniscript::Node::Node

Constructs a node with subexpressions and data bytes, performing the duplicate key check.

Synopsis

Declared in <script/miniscript.h>

template<typename Ctx>
Node(
    Ctx const& ctx,
    Fragment nt,
    std::vector<Node> sub,
    std::vector<unsigned char> arg,
    uint32_t val = 0);

Parameters

NameDescription
ctxContext providing the script context and key comparator.
ntThe fragment (node type).
subThe subexpressions.
argThe data bytes.
valThe k value (timelock value or threshold).