Step sequencer. Tracks the current step and total number of steps. SATISFIED while more steps remain (current < total). Becomes UNSATISFIED when the sequence is complete or invalid. No Tapscript equivalent exists.
PLCInvertible
Ladder Diagram
Fields
Field
Data Type
Size
Side
Description
current_step
NUMERIC
1-4 B
Conditions
Current step index (NUMERIC[0])
total_steps
NUMERIC
1-4 B
Conditions
Total number of steps in the sequence (NUMERIC[1], must be > 0)
No witness fields required — evaluation uses only the two NUMERIC condition fields.
current_step=0, total=0: total ≤ 0 → UNSATISFIED (invalid)
Use Cases
Multi-Step Protocols
Enforce that a multi-phase protocol progresses through each step in order. Each UTXO in the covenant chain carries the current step, ensuring no steps are skipped and the protocol completes fully.
Ordered State Transitions
Model finite state machines on-chain. The sequencer tracks which state the covenant is in, and combined with other blocks, enforces valid transitions between states in a predetermined order.
Workflow Enforcement
Business workflows requiring sequential approval steps (e.g., proposal → review → approval → execution). The sequencer ensures each step is completed before the next can begin.