miniscript::Node::Node

Constructs a node with subexpressions and keys, bypassing the duplicate key check.

Synopsis

Declared in <script/miniscript.h>

Node(
    /* implementation-defined */ no_dup_check,
    MiniscriptContext script_ctx,
    Fragment nt,
    std::vector<Node> sub,
    std::vector<Key> key,
    uint32_t val = 0);

Parameters

NameDescription
no_dup_checkTag selecting the constructor that skips the duplicate key check.
script_ctxThe script context (P2WSH or Tapscript).
ntThe fragment (node type).
subThe subexpressions.
keyThe keys.
valThe k value (timelock value or threshold).