New method enables reusable bitcoin template checks without native ctv

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

Computational Engineering, Finance, and ScienceCryptography and Security

Summary

Bitcoin transactions often rely on templates to restrict how money can be spent, but these templates typically depend on specific previous transactions, which limits their reuse. The authors present a new way to verify such templates in Bitcoin using proposed opcodes (CSFS and CAT) that mimic the functionality of native CHECKTEMPLATEVERIFY (CTV) without needing it directly. Their method allows a template’s authorization to remain valid across different previous outputs, increasing flexibility. They tested their approach with a working prototype, showing it is possible though a bit more costly than native CTV. This work offers a way to extend Bitcoin scripting capabilities while the native opcode is not yet available.

What this means in practice

Authors

Baixing Liu, Aaron Zhang, Ramble Lan, Xuan Ding

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.