Expand description
Tree (operator AST) per spec §3.6 + §6.
Structs§
- Node
- A node in the operator AST: a tag plus its body.
Enums§
Constants§
- MAX_
DECODE_ DEPTH - Hard cap on
read_noderecursion depth. Shared across all recursive tags (Sh,AndV,AndOr,TapTree,Multi,Tr, …) as a generic anti-DOS hardening bound — not a spec-mandated value for non-taproot sites. The value 128 happens to coincide with BIP-341TAPROOT_CONTROL_MAX_NODE_COUNT, but its role here is just “any depth a real miniscript expression could plausibly reach + headroom”; P2WSH script-size limits cap practical miniscript depth at well under 50.
Functions§
- read_
node - Decode a
Nodefrom the bit stream. - write_
node - Encode a
Nodeto the bit stream.