Bitcoin
Nov 11, 2026

How MATT and OP_CCV Could Carry Contract State Across Bitcoin Transactions

Cointelegraph Research’s fifth article on Bitcoin covenants examines MATT, or Merkleize All The Things, and its most direct implementation through OP_CHECKCONTRACTVERIFY, known as OP_CCV. The proposal would let Bitcoin contracts carry data from one transaction to the next instead of evaluating every transaction without memory of earlier executions. OP_CCV commits contract state into Taproot output keys. A script can inspect state supplied on the witness stack, calculate an updated value, and require the next output to commit to that value. The article describes default, deduct and ignore modes for checking outputs, along with a separate input mode. Default and deduct modes preserve value across checked outputs, so fees can be paid through dedicated inputs without forcing preset amounts or accidentally burning funds. The article also examines OP_CCV combined with OP_CAT. Byte concatenation would allow scripts to verify Merkle proofs against a separate contract state tree, update its root and commit the new root in the next output. That construction could support compact fraud proofs, with only a disputed computation step revealed onchain. The combination also expands OP_CCV’s vault capabilities toward the functionality proposed by OP_VAULT. The next article will cover application-specific opcodes including OP_VAULT, OP_UNVAULT and OP_EVICT.

30
How MATT and OP_CCV Could Carry Contract State Across Bitcoin Transactions