Bitcoin Covenants Part 5: MATT and OP_CHECKCONTRACTVERIFY — How Bitcoin could carry state across transactions

Share

The OP_CHECKCONTRACTVERIFY opcode allows a script to inspect state data, perform computations and require its updated commitment in a specified output, thereby enforcing state transitions directly on the blockchain. Its default, deduct and ignore modes impose different constraints on amounts, while dedicated inputs and outputs enable flexible transaction-fee payments. Combining OP_CHECKCONTRACTVERIFY with OP_CAT makes it possible to construct and verify Merkle proofs using, alongside the Taproot script tree, a separate state tree that commits to the intermediate steps of a computation. This architecture could support optimistic fraud-proof systems, where only the disputed computation is verified on-chain without relying on Lamport one-time signatures or the presigned transaction graphs used by BitVM. Combined with OP_CAT, the opcode also enables vaults with functionality equivalent to OP_VAULT, which James O’Beirne considers effectively superseded by this more general and robust design.

Source: Read the original article

Disclaimer: this content is for information purposes only and is not financial advice. Cryptocurrencies are highly volatile: you may lose all of your capital. Always do your own research. Legal notice
Telemac
Telemachttp://cryptoinfo.ch
Passionné de nouvelles technologies, j’explore l’univers de la blockchain et des cryptomonnaies pour partager l’actualité et les innovations du secteur.

Read More

Items