---
title: "OP_CHECKCONTRACTVERIFY (CCV) — definition | Nuri Glossary"
description: "A proposed opcode that verifies committed contract data, enabling stateful outputs and vaults."
lang: "en"
type: "glossary-term"
canonical: "https://nuri.com/glossary/op-checkcontractverify"
---

# OP_CHECKCONTRACTVERIFY (CCV)

A proposed opcode that verifies committed contract data, enabling stateful outputs and vaults.

## Basically

OP_CHECKCONTRACTVERIFY is a proposed Bitcoin opcode in BIP 443. It would let a Bitcoin output carry information and require the next output to follow set rules, so a contract can keep and update information.

## Key Takeaways

- OP_CHECKCONTRACTVERIFY (OP_CCV) is a proposed tapscript opcode defined in BIP 443. It lets Bitcoin UTXOs carry dynamic data commitments, so consensus rules can enforce smart contracts that keep state.
- CCV grew out of the MATT (Merklize All The Things) framework and is designed as a general-purpose covenant primitive. It can express vaults, CoinPools, Timeout Trees and Ark-style constructions with a single opcode.
- BIP 345 (OP_VAULT) was withdrawn in May 2025 in favour of CCV. CCV provides equivalent vault functionality while supporting a much broader set of contract designs.

## What Is OP_CHECKCONTRACTVERIFY?

OP_CHECKCONTRACTVERIFY (commonly abbreviated OP_CCV) is a proposed Bitcoin opcode. It would let scripts check that a spending transaction's outputs commit to specific data embedded in a Taproot output. CCV constrains what the next UTXO must look like, so each spend can read, update and forward embedded state to the next output.
Salvatore Ingala authored the opcode as part of the MATT (Merklize All The Things) research framework. MATT explored how adding a small number of opcodes to Bitcoin Script could enable arbitrary computation verification through fraud proofs and Merkle-committed state machines. BIP 443 distils those ideas into a single, practical opcode that reuses the OP_SUCCESS 187 (0xbb) slot in tapscript.
BIP 443 remains a draft proposal as of late 2026. It requires a soft fork for activation and has no confirmed activation timeline. A prototype implementation exists in a fork of Bitcoin Inquisition for testing on signet.

## How It Works

CCV operates within tapscript execution. It reads five elements from the stack, and each one constrains a different aspect of the spending transaction's output:

## The Verification Process

CCV performs a deferred check during script validation rather than an immediate one. The opcode records its constraints: target output index, required key, required taptree and required data. The transaction validator enforces them after all scripts have been evaluated, so multiple CCV invocations across different inputs can reference the same output and combine their constraints.

## Amount Preservation

CCV includes a deferred amount-checking mechanism inspired by OP_VAULT's design. When multiple inputs use CCV to point at the same output, their amounts are summed and compared with the output's value as a lower bound, which prevents funds from being silently drained when spending a covenant-locked UTXO. A flag can disable the check when exact amount control is unnecessary or handled by other means, such as a signature.
One limitation affects how amounts can be split. The deferred amount check works well for consolidation (many inputs to one output) and preservation (one input, one output), but it does not natively support arbitrary splitting of amounts across outputs. CoinPool-style constructions that split balances among participants may need additional introspection capabilities or complementary opcodes like OP_TXHASH to fully constrain amounts.

## Example: Enforcing a Vault Trigger

A simplified vault construction using CCV might define a tapscript leaf. The script could look like this:
The script requires the first output of any spending transaction to be a P2TR output with the specified internal key, taptree and committed data. The recovery taptree would include a time-locked withdrawal leaf and an immediate recovery leaf. These paths replicate OP_VAULT's two-step withdrawal pattern using general-purpose covenant logic.

## Why It Replaced OP_VAULT

OP_VAULT (BIP 345), authored by James O'Beirne, introduced two purpose-built opcodes for time-delayed recovery vaults. In May 2025, O'Beirne withdrew BIP 345 in favour of CCV, stating that OP_CCV is a more general version of the vault design.
The key technical difference is that OP_VAULT could only swap out one tapleaf when triggered, while CCV can replace the entire taptree structure. This makes CCV strictly more flexible for vault architectures while also enabling entirely different contract types. Community analysis on Delving Bitcoin concluded that there is virtually nothing you can build with OP_VAULT that you cannot also build with CCV, and the MEV concerns are almost identical between the two approaches.
BIP-345 OP_VAULT: Time-Delayed Recovery Vaults covers vault designs and the OP_VAULT proposal in more detail. Read it for a deeper look at both subjects.

## Vaults

Bitcoin vaults enforce a time-delayed withdrawal process: spent funds first move to an intermediate UTXO with a timelock, and a recovery key can claw back the funds during the delay. CCV enables this pattern by requiring the spending transaction's output to commit to a specific taptree containing both the delayed-withdrawal path and the recovery path. Bitcoin Covenants Explained gives a broader overview.

## CoinPools

CoinPools allow multiple users to share ownership of a single UTXO, with each user maintaining a verifiable balance within the pool. CCV can require the remaining pool UTXO to carry forward the correct updated state when a participant exits, including reduced balances and a modified participant set. The data commitment tracks the Merkle root of all participant balances.

## Timeout Trees

Timeout Trees are tree-structured transaction arrangements whose leaves expire at a predetermined time. CCV can constrain how the tree unfolds: each node commits to its children's structure through the data field, so no single participant can manipulate intermediate states.

## Ark and VTXO Trees

The Ark protocol uses virtual UTXOs (VTXOs) organised in tree structures managed by an Ark service provider. CCV could enforce the correct construction of these VTXO trees at consensus level, reducing trust assumptions. Each tree node would commit to its children through the Taproot data tweak, and CCV would verify that any unilateral exit correctly reveals the expected branch.

## General State Machines

CCV can express arbitrary state machines on Bitcoin when combined with OP_CAT for data manipulation. Ingala has stated that the full generality of the MATT framework, including fraud proofs for off-chain computation verification, requires only OP_CHECKCONTRACTVERIFY and OP_CAT. These opcodes could enable optimistic execution of complex contracts, with disputes settled on-chain through bisection-style fraud proofs.

## Comparison with Other Covenant Proposals

CCV is one of several competing covenant proposals for Bitcoin. Each proposal takes a different approach to constraining how UTXOs can be spent:
Spark's Bitcoin Covenant Proposals Compared tool gives a detailed comparison of these proposals and their trade-offs. You can use it to review the differences.

## Activation Uncertainty

BIP 443 is a draft with no activation timeline, and Bitcoin's consensus change process is deliberately conservative. No covenant proposal had been activated on mainnet as of late 2026, so protocols that depend on CCV cannot launch on mainnet until a soft fork is successfully deployed. Bitcoin Covenant Activation: The Path Forward gives context on covenant activation.

## Amount Introspection Limitations

The deferred amount check provides a lower-bound guarantee but cannot enforce exact output amounts or arbitrary splits. Protocols requiring precise amount distribution, such as CoinPool exits that divide balances among participants, may need complementary opcodes or signature-based enforcement. Research and discussion on this issue remain active on the bitcoin-dev mailing list.

## Complexity of Recursive Covenants

CCV enables recursive covenants: UTXOs that constrain their successors, which in turn constrain their successors, indefinitely. Recursive covenants are powerful, but they raise concerns about creating "poisoned" UTXOs that can never be freely spent and enabling MEV-style extraction in Bitcoin. Other recursive covenant proposals share these concerns; they are not unique to CCV.

## Interaction with Existing Opcodes

CCV is designed to compose with existing tapscript opcodes and future proposals. Its full potential depends on complementary opcodes such as OP_CAT for data manipulation and potentially OP_TXHASH for transaction introspection. The optimal combination of opcodes remains an open design question in the Bitcoin development community.
The glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.
Part of the [Nuri glossary](https://nuri.com/glossary), which defines 1876 Bitcoin, Lightning, wallet, stablecoin and payment terms.
