CheckTemplateVerify, or CTV, is an opcode proposed under Bitcoin Improvement Proposal 119 (BIP-119). This opcode intends to enable more advanced covenants, which are specialized smart contracts setting conditions on how transaction outputs can be spent.