|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
-
-
- Violation Keystone : une fuite de données client suscite des problèmes de sécurité du portefeuille matériel
- Oct 26, 2026 at 11:55 am
- La récente violation de données de Keystone, exposant les informations d'expédition des clients, souligne les risques de sécurité croissants pour les utilisateurs de portefeuilles matériels cryptographiques et suscite des questions critiques sur la conservation des données et la sécurité des utilisateurs.
-
- La politique de la Fed pèse sur le marché des crypto-monnaies alors que le secteur des actifs numériques envisage des décisions clés
- Oct 26, 2026 at 11:45 am
- L’anticipation des changements de politique de la Réserve fédérale et des bénéfices technologiques se fait sentir, ce qui aura un impact sur le marché des cryptomonnaies et le secteur des actifs numériques.
-
- Solana Company rejoint les entreprises stratégiques d'élite de Hong Kong, renforçant ainsi la présence de Web3
- Oct 26, 2026 at 11:35 am
- Solana Company (HSDT), cotée au Nasdaq, a été reconnue comme une entreprise stratégique à Hong Kong, signalant une démarche importante visant à consolider le rôle de la ville en tant que plaque tournante du Web3.
-
- Agents IA, ETH Glamsterdam Fork et la saga « Steal My Bitcoin » : une plongée approfondie dans le paysage de sécurité en évolution de la cryptographie
- Oct 26, 2026 at 07:55 am
- Le hard fork Glamsterdam d'Ethereum est confronté à des retards, tandis que les agents d'IA révolutionnent l'analyse des vulnérabilités et que le site « Steal My Bitcoin » teste la résilience PHP2Shell, mettant en évidence l'évolution dynamique de la sécurité de la cryptographie.
-
- Bitcoin à 80 000 $ : les liquidations de cryptomonnaies font exploser le marché alors que le support clé se maintient (pour l'instant)
- Oct 26, 2026 at 07:25 am
- La danse du Bitcoin autour de la barre des 80 000 dollars, au milieu d'une vague de liquidation cryptographique de 550 millions de dollars, a saisi le marché, soulevant des questions sur sa résilience.
-
- GMO Trading Cloud Breach expose les serveurs, mettant en évidence les risques omniprésents sur les serveurs et les problèmes de violation de données dans la cryptographie
- Oct 26, 2026 at 07:25 am
- L'analyse de la violation de GMO Trading Cloud et d'autres incidents récents révèle des risques importants pour les serveurs et des vulnérabilités en matière de violation de données dans l'espace cryptographique.
-
- Agents IA, ETH Glamsterdam Fork et la saga « Steal My Bitcoin » : une minute new-yorkaise sur la sécurité cryptographique
- Oct 26, 2026 at 07:15 am
- Les agents d'IA se mobilisent pour sécuriser la cryptographie, comme le montre le sauvetage du fork de l'ETH Glamsterdam, tandis que le défi « Steal My Bitcoin » teste une ancienne vulnérabilité, mettant en évidence une ère dynamique pour la sécurité des actifs numériques.
-
- La violation de GMO Trading Cloud soulève des problèmes de risque sur les serveurs, faisant écho aux incidents de données passés
- Oct 26, 2026 at 07:15 am
- Un événement important de risque de serveur chez GMO Trading Cloud, affectant potentiellement 26 739 serveurs, met en évidence les vulnérabilités persistantes en matière de violation de données dans le secteur de la technologie financière. Cette nouvelle fait suite à des incidents similaires, soulignant la nécessité d’une sécurité robuste.

































