← Lab /Security & privacy

Recursive invariants enable multi-step UTXO workflows with linear validation cost

Recursive invariants allow multi-step UTXO protocols to preserve validation-time locality and achieve roughly linear cumulative validation cost

Security & privacy arXiv 22 Sep 2026 Method Prototype evidence

Published as “Staged Multi-step UTXO Workflows via Recursive Invariants”

Why it matters

CTV+ can enforce multi-step UTXO contracts with lower on-chain validation cost than equivalent Solidity implementations, potentially reducing fees and coordination latency for complex workflows.

Summary

Recursive invariants (CTV+) let UTXO workflows enforce multi-step rules without shared mutable state, and a benchmark shows the validation-cost proxy grows approximately linearly across six workloads. The proxy-to-gas ratios versus Solidity baselines range from 3.6% to 23.7% (mean 10.8%), indicating lower on-chain validation cost, though the metric is a proxy, not a direct runtime speedup. The evidence is based on six case-study workflows evaluated on a Python interpreter and Solidity implementations.

What they found 2

  1. Validation-cost proxy grows linearly with trace length

    “The cumulative CTV+ benchmark proxy increases approximately linearly over all six measured traces.”

  2. Proxy-to-gas ratios are between 3.6% and 23.7% (mean 10.8%) for five trace-aligned cases

    “For the five trace-aligned benchmark cases, the reported endpoint proxy-to-gas ratios are 3.6%-23.7% (unweighted mean 10.8%).”

Caveats 5

  • The proxy-to-gas ratios vary widely (3.6%-23.7%), so cost savings are not uniform across workflows.
  • The reported ratios are based on a validation-cost proxy, not actual EVM gas or runtime performance, and the cooldown case was excluded because it lacked a trace-aligned Solidity reference.
  • It is not a general-purpose shared-mutable-state platform.
  • Validation-time locality does not imply constant time for arbitrary RI size, nesting depth, or operand cost.
  • The concrete checker stores at most one RI formula and one checker-side instance label per transaction; supporting multiple named formulas or instances would require a richer representation.

What’s new here 4

  • Introduces Recursive Invariants (RIs), transaction-level predicates that propagate workflow rules across successor positions.
  • Defines a statically typed three-valued DSL (CTV+) that enforces validation-time locality and one-step evaluability.
  • Provides a formal deduction system sound for the three-valued semantics and proves Turing-completeness of the evaluable fragment.
  • Implements a benchmark interpreter and cost-estimation toolchain, showing linear cumulative validation-cost growth over six realistic workflows.