|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Articles d’actualité sur les crypto-monnaies
Deep Dive Into OP_CAT: A New Era of Bitcoin Scripting
May 03, 2025 at 03:14 am

This is the fifth article in a series deep diving into individual covenant proposals that have reached a point of maturity meriting an in-depth breakdown.
OP_CAT, put forward for reactivation in tapscript by Ethan Heilman and Armin Sabouri in BIP 347, is not a covenant. It was an opcode that was originally included in the first release of Bitcoin for manipulating data elements on the stack. It was deactivated in 2010 with the release of Bitcoin 0.3.10 along with a number of other opcodes due to concerns of denial of service attacks that could crash nodes. A global maximum limit of 520 bytes for any individual item on the stack while executing a script was also added.
You should already have a basic understanding of how script evaluation on the stack works, and the basic pieces of a bitcoin transaction, so there isn’t really much pre-requisite explaining necessary for OP_CAT.
While OP_CAT may not be a covenant in and of itself, it can emulate covenants due to a quirk in how Schnorr signatures work. This is a pretty in depth topic, fully explained here by Andrew Poelstra from Blockstream, so I’ll just stick with a high level view. Every elliptic curve has a generator point, which is essentially “0”, that is used in the elliptic curve math for key generation and signing. With Schnorr, you can sign using the generator point as a key, and give or take a few bytes that you have to sign repeatedly to get right, the resulting signature is actually the same hash of the transaction you signed.
Set aside the mechanics of how that works mathematically for now, and just remember for later that these “weird” signatures allow you to get the current transactions TXID on the stack.
How OP_CAT Works
OP_CAT takes the top two data items on the stack and concatenates them together. So if the top two items on the stack are “1” and “2”, OP_CAT removes both of them and then puts “12” on top of the stack. That’s it.
What Is OP_CAT Useful For
Okay, so what’s the big deal? Why is everyone freaking out about OP_CAT even though it’s so simple the explanation of how it works didn’t even take a full paragraph to write.
Two reasons, although given the nature of OP_CAT I can give no guarantees these are the only two reasons. OP_CAT allows the construction and verification of merkle trees directly on the stack, which opens the door to some interesting behavior and functionality. It also allows emulation of covenants enabling full granular introspection due to the “weird” Schnorr signatures mentioned above.
Merkle proof verification is a key component of Taproot, but the way it is implemented merkle tree verification only occurs in the context of verifying that a tapscript spending path is committed to in the root Schnorr public key in the output script of the coin being spent. Taproot does not support generic merkle proof verification.
OP_CAT allows this in a totally generic manner. Simply providing the leaf hash(es) and then interior hash nodes in the right order and calling OP_CAT successively will allow you to reconstruct a merkle root hash, and compare against a pre-defined hash in the script. You could do this to provide unilateral withdrawal paths for shared UTXOs like in CatVM, you could make transactions dependent on other transactions having been included in a block with valid work, you can make a transaction dependent on pretty much any condition that can be verified with a merkle proof.
Now, for the covenant emulation that enables full introspection. What you are trying to do is ensure that a transaction has to have certain characteristics to be valid. Remember now that the “weird” signature gets the hash of the transaction on the stack. A transaction signature isn’t actually done over the raw transaction, it’s done over its hash. This allows us to do something interesting.
You can construct very complicated and convoluted scripts using OP_CAT to take the individual raw pieces of the transaction as part of the witness, and slowly put them together on the
Clause de non-responsabilité:info@kdj.com
Les informations fournies ne constituent pas des conseils commerciaux. kdj.com n’assume aucune responsabilité pour les investissements effectués sur la base des informations fournies dans cet article. Les crypto-monnaies sont très volatiles et il est fortement recommandé d’investir avec prudence après une recherche approfondie!
Si vous pensez que le contenu utilisé sur ce site Web porte atteinte à vos droits d’auteur, veuillez nous contacter immédiatement (info@kdj.com) et nous le supprimerons dans les plus brefs délais.
-
- Les ETF Bitcoin connaissent une augmentation massive des entrées de 730,8 millions de dollars, alimentant le rallye de septembre au milieu des spéculations sur les taux de la Fed
- Sep 06, 2026 at 12:05 pm
- Les ETF Bitcoin ont connu une augmentation significative avec un afflux de 730,8 millions de dollars le 3 septembre, le plus fort depuis janvier, alors que le marché digère les décisions de taux de la Fed et les mouvements des prix du Bitcoin.
-
- La liste blanche des singes se réchauffe : la prochaine pièce cryptographique avec un potentiel 100x ? Une prise à New York
- Sep 06, 2026 at 07:25 am
- Alors que le marché de la cryptographie regorge de spéculations, Apeing apparaît comme une pièce de monnaie remarquable avec sa liste blanche offrant un accès anticipé et un potentiel alléchant de 100x, ouvrant la voie à son lancement le 8 septembre.
-
- Agents IA, cartes de crédit et lecture du marché : naviguer dans la nouvelle frontière des données financières
- Sep 06, 2026 at 07:05 am
- Les agents IA transforment notre façon de lire les marchés, les transactions par carte de crédit devenant un nouveau point de données. Explorez les implications et les innovations.
-
- LeBron James taquine le partenariat Polymarket dans un clip sur les réseaux sociaux, signalant la montée en flèche du marché des prédictions grand public
- Sep 06, 2026 at 06:35 am
- Le teaser sur les réseaux sociaux de LeBron James concernant un partenariat avec Polymarket met en évidence l'attrait croissant du grand public et la corde raide réglementaire pour les marchés de prédiction, faisant allusion à une nouvelle ère pour le secteur.
-
- Hausse des prix du Dogecoin : la cassure du drapeau haussier suscite l'optimisme, visant 0,12 $
- Sep 06, 2026 at 06:35 am
- Le prix du Dogecoin connaît une hausse significative après la cassure du drapeau haussier, les analystes visant un objectif de 0,12 $. Les principaux niveaux de support et de résistance sont surveillés de près.
-
- CLARITY Act et FinCEN : une histoire de deux trajectoires cryptographiques au milieu d'escroqueries croissantes
- Sep 06, 2026 at 06:35 am
- Le paysage cryptographique est un curieux mélange : les frictions réglementaires s’atténuent avec la loi CLARITY tandis que le FinCEN rapporte un montant stupéfiant de 12,7 milliards de dollars d’escroqueries, mettant en évidence un récit divisé dans la position américaine en matière de cryptographie.
-
- BIS explore XRP Ledger pour les statistiques officielles : une preuve de concept ouvre la voie à une meilleure intégrité des données
- Sep 06, 2026 at 06:05 am
- Le document de travail du BIS teste XRP Ledger pour vérifier les statistiques officielles en chaîne, améliorant ainsi l'intégrité des données avec une preuve de concept rentable.
-
- XRP, un partenariat majeur, gagne : des domaines universitaires à la finance mondiale
- Sep 06, 2026 at 12:05 am
- XRP fait des progrès significatifs, notamment grâce à des partenariats sportifs universitaires de haut niveau et à des victoires réglementaires mondiales, démontrant son influence croissante malgré le scepticisme du marché.
-
- Bitcoin s'effondre alors que le rapport sur les emplois chauds alimente les chances de hausse de la Fed : une mise à jour du marché de New York
- Sep 05, 2026 at 04:05 pm
- Un solide rapport sur l’emploi en août a provoqué une onde de choc sur les marchés financiers, poussant le Bitcoin en dessous de 80 000 dollars et ravivant les craintes d’une hausse des taux de la Fed en septembre. Quelle est la prochaine étape pour la cryptographie ?

































