MATT proposal aims to let Bitcoin contracts carry state between transactions

The framework uses Taproot commitments and a proposed opcode to let contracts update state as funds move, rather than choose only from preset states.

Gold Bitcoin emerging from a jigsaw puzzle piece, symbolizing digital currency and enigmatic cryptocurrency market. Rafael Minguet Delgado

A proposed Bitcoin contract framework called MATT could let a contract carry information forward and update it as funds move between transactions. Its key use case is stateful contracts: arrangements in which each transaction reflects the contract’s current state and can establish a new one. Cointelegraph Research describes OP_CHECKCONTRACTVERIFY, or OP_CCV, as the most direct and well-specified way to implement the framework.

The change matters because standard Bitcoin scripts evaluate each transaction independently and do not retain memory of earlier executions. Existing covenant approaches can represent state through a set of possible addresses and transitions, but the article says this makes numerical logic difficult to implement elegantly. MATT is designed to let a spend compute updated data and commit it to the next output, rather than require the contract to select from a fixed list of states.

The article describes MATT and OP_CCV as proposals; it does not say that OP_CCV has been activated or give a deployment timeline. The proposal’s central idea is to commit contract state in a Taproot key and check that the required state is carried into a later output.

How OP_CCV checks state

Taproot output keys can be tweaked to commit to data. In the MATT design, a key commits both to the Taproot spending conditions and to the contract’s current state. OP_CCV would let a script check the state data supplied when an output is spent, apply computations to it, and require the updated state to be committed in a specified output. Bitcoin would verify the transition on-chain.

OP_CCV’s proposed modes also set different rules for how input value is assigned to a checked output. Default mode assigns the input’s full BTC value; deduct mode assigns an amount equal to the output’s value; and ignore mode checks the script and data commitment without restricting the amount. Under default and deduct modes, fees must be covered by separate inputs, according to the article.

What OP_CAT could add

Combined with OP_CAT, which enables byte concatenation in Script, MATT could support constructing and checking Merkle proofs on-chain, the article says. It identifies fraud proofs as part of the framework’s broader purpose, but does not detail the proof process or explain the two Merkle trees it begins to mention. Those technical details and the proposal’s implementation status are not established in the article.

This report draws on information from Cointelegraph.

Editorial checks passed Facts, figures and quotes checked against 1 source Drafted with AI assistance · How it works

Spotted an error? Tell us

Add BCoinTalk as a preferred source on Google

Related stories