bitcoincoding.dev / Research

Paper · November 2026 · arXiv

CTV without CTV

CTV Without CTV: Verified Template Checks and Reusable State Authorization with CSFS+CAT

A CSFS+CAT Tapscript macro that checks the 32-byte BIP-119 CTV template hash for a bounded family of single-input Taproot transactions, with proofs, and a two-party state-replacement prototype confirmed on Bitcoin Inquisition regtest and public Signet.

Baixing LiuAaron ZhangRamble LanXuan Ding✓ confirmed on public Signet

Abstract

Can template authorization remain reusable when a payment channel state spends a different previous output? We use the proposed CAT and CHECKSIGFROMSTACK (CSFS) opcodes to construct a Tapscript macro that checks the 32-byte BIP-119 CHECKTEMPLATEVERIFY (CTV) predicate for a defined family of single-input Taproot transactions with fixed output-script lengths. A publicly refreshable auxiliary signature, checked by both CSFS and CHECKSIG, binds witness-supplied fields to the actual transaction. A separate participant signature authorizes the template hash and remains valid across eligible previous outputs sharing that hash. Unlike the auxiliary signature, this authorization need not commit to the spent outpoint, amount, or tapleaf.

We prove soundness, public completeness, and stack preservation for the macro, and give conditions for substituting it into a CTV+CSFS state-replacement protocol. An executable compiler and Bitcoin Inquisition experiments on regtest and public Signet demonstrate a confirmed stale-state override and delayed settlement in a two-party, three-update prototype with public recovery data. The measured update costs 496 vB, versus 241 vB with native CTV+CSFS. The result is a bounded, higher-cost route to state replacement under proposed opcodes, without native CTV or ANYPREVOUT.

The idea in three parts

Confirmed state-replacement path

Native CTV+CSFS and the CSFS+CAT emulation ran the same two-party, three-update path on Bitcoin Inquisition v29.4-inq. Values are native/emulated.

StepSignet heightSize (vB)Fee (sat)
S0 → S1 (update)322226/322226241/496600
S1 → S3 (stale-state override)322227/322227241/4961200
S3 → payouts (settlement)322231/322232185/434600

What the paper does not claim

Cite

@misc{liu2026ctvwithoutctv,
  author        = {Baixing Liu and Aaron Zhang and Ramble Lan and Xuan Ding},
  title         = {CTV Without CTV: Verified Template Checks and Reusable State Authorization with CSFS+CAT},
  year          = {2026},
  eprint        = {2611.38616},
  archivePrefix = {arXiv},
  primaryClass  = {cs.CE},
  url           = {https://arxiv.org/abs/2611.38616}
}
Technical record · facts.json
{
  "page": "https://bitcoincoding.dev/research/ctv-without-ctv/",
  "title": "CTV Without CTV: Verified Template Checks and Reusable State Authorization with CSFS+CAT",
  "short_title": "CTV without CTV",
  "authors": [
    "Baixing Liu",
    "Aaron Zhang",
    "Ramble Lan",
    "Xuan Ding"
  ],
  "date": "2026-11-28",
  "arxiv": "https://arxiv.org/abs/2611.38616",
  "arxiv_id": "2611.38616",
  "categories": "cs.CE, cs.CR",
  "keywords": [
    "Bitcoin covenants",
    "OP_CHECKTEMPLATEVERIFY",
    "BIP 119",
    "OP_CAT",
    "BIP 347",
    "OP_CHECKSIGFROMSTACK",
    "BIP 348",
    "Tapscript",
    "Lightning Symmetry",
    "eltoo",
    "Bitcoin Inquisition"
  ],
  "abstract": [
    "Can template authorization remain reusable when a payment channel state spends a different previous output? We use the proposed CAT and CHECKSIGFROMSTACK (CSFS) opcodes to construct a Tapscript macro that checks the 32-byte BIP-119 CHECKTEMPLATEVERIFY (CTV) predicate for a defined family of single-input Taproot transactions with fixed output-script lengths. A publicly refreshable auxiliary signature, checked by both CSFS and CHECKSIG, binds witness-supplied fields to the actual transaction. A separate participant signature authorizes the template hash and remains valid across eligible previous outputs sharing that hash. Unlike the auxiliary signature, this authorization need not commit to the spent outpoint, amount, or tapleaf.",
    "We prove soundness, public completeness, and stack preservation for the macro, and give conditions for substituting it into a CTV+CSFS state-replacement protocol. An executable compiler and Bitcoin Inquisition experiments on regtest and public Signet demonstrate a confirmed stale-state override and delayed settlement in a two-party, three-update prototype with public recovery data. The measured update costs 496 vB, versus 241 vB with native CTV+CSFS. The result is a bounded, higher-cost route to state replacement under proposed opcodes, without native CTV or ANYPREVOUT."
  ],
  "confirmed_paths": [
    {
      "path": "S0 → S1 (update)",
      "regtest_heights_native_emulated": "105/105",
      "signet_heights_native_emulated": "322226/322226",
      "vsize_native_emulated": "241/496",
      "fee_sat": 600
    },
    {
      "path": "S1 → S3 (stale-state override)",
      "regtest_heights_native_emulated": "108/108",
      "signet_heights_native_emulated": "322227/322227",
      "vsize_native_emulated": "241/496",
      "fee_sat": 1200
    },
    {
      "path": "S3 → payouts (settlement)",
      "regtest_heights_native_emulated": "112/112",
      "signet_heights_native_emulated": "322231/322232",
      "vsize_native_emulated": "185/434",
      "fee_sat": 600
    }
  ],
  "does_not_claim": [
    "Not an unrestricted replacement for BIP-119: single input, bounded outputs with fixed output-script lengths, empty scriptSigs.",
    "Higher cost: 255 extra vB per update and 249 per settlement against native CTV+CSFS.",
    "Not production channel security: no fee bumping, reorganization recovery, HTLCs or routing, and invalid candidates were tested with testmempoolaccept rather than mined.",
    "No position for or against activating any opcode."
  ]
}