|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Nachrichtenartikel zu Kryptowährungen
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
Haftungsausschluss:info@kdj.com
Die bereitgestellten Informationen stellen keine Handelsberatung dar. kdj.com übernimmt keine Verantwortung für Investitionen, die auf der Grundlage der in diesem Artikel bereitgestellten Informationen getätigt werden. Kryptowährungen sind sehr volatil und es wird dringend empfohlen, nach gründlicher Recherche mit Vorsicht zu investieren!
Wenn Sie glauben, dass der auf dieser Website verwendete Inhalt Ihr Urheberrecht verletzt, kontaktieren Sie uns bitte umgehend (info@kdj.com) und wir werden ihn umgehend löschen.
-
- Ethena (ENA) steigt nach VC-Übernahme und strategischem Gebührenumstellungsplan um 84 %
- Sep 06, 2026 at 08:05 pm
- Der ENA-Token von Ethena steigt aufgrund eines entscheidenden VC-Buyouts, eines Gebührenwechselmechanismus und neuer Integrationen von Verbraucherprodukten stark an und definiert seine Marktdynamik neu.
-
- Spot-Bitcoin-ETFs fördern die institutionelle Akzeptanz: Eine neue Ära für Bitcoin-Investitionen
- Sep 06, 2026 at 08:05 pm
- Spot-Bitcoin-ETFs revolutionieren den institutionellen Zugang zu Bitcoin, indem sie ihn in bekannte regulierte Strukturen integrieren und die Einführung vereinfachen. Dies markiert einen bedeutenden Wandel.
-
- Vitalik Buterin stellt revolutionäres Ethereum-Transaktionsdesign für parallele Validierung vor
- Sep 06, 2026 at 07:55 pm
- Vitalik Buterin schlägt ein neues Ethereum-Transaktionsmodell vor, das Aktionen und Abhängigkeiten trennt, eine parallele Validierung ermöglicht und möglicherweise die Netzwerkeffizienz verbessert. Dies ist ein bedeutender Schritt im Ethereum-Transaktionsdesign.
-
- Bitcoin-ETFs verzeichnen einen massiven Anstieg der Zuflüsse in Höhe von 730,8 Millionen US-Dollar, was die September-Rallye inmitten der Zinsspekulationen der Fed anheizt
- Sep 06, 2026 at 12:05 pm
- Bitcoin-ETFs erlebten mit einem Zufluss von 730,8 Millionen US-Dollar am 3. September einen deutlichen Aufschwung, den stärksten seit Januar, während der Markt die Zinsentscheidungen der Fed und die Bitcoin-Preisbewegungen verarbeitet.
-
- Apeing Whitelist heizt sich auf: Der nächste Krypto-Coin mit 100-fachem Potenzial? Eine Aufnahme aus NYC
- Sep 06, 2026 at 07:25 am
- Während der Krypto-Markt von Spekulationen wimmelt, entpuppt sich Apeing als herausragende Meme-Münze mit seiner Whitelist, die einen frühen Zugang und ein verlockendes 100-faches Potenzial bietet, und bereitet die Bühne für seine Einführung am 8. September.
-
-
- LeBron James neckt Polymarket-Partnerschaft in einem Social-Media-Clip und signalisiert damit einen Anstieg des Mainstream-Prognosemarkts
- Sep 06, 2026 at 06:35 am
- LeBron James‘ Social-Media-Teaser einer Polymarket-Partnerschaft unterstreicht die wachsende Attraktivität des Mainstreams und den regulatorischen Engpass für Prognosemärkte und deutet auf eine neue Ära für den Sektor hin.
-
- Dogecoin-Preisanstieg: Ausbruch der Bullenflagge weckt Optimismus und zielt auf 0,12 $
- Sep 06, 2026 at 06:35 am
- Der Preis von Dogecoin erlebt einen deutlichen Anstieg nach dem Ausbruch der bullischen Flagge, wobei Analysten ein Ziel von 0,12 $ im Visier haben. Wichtige Unterstützungs- und Widerstandsniveaus werden genau beobachtet.
-
- CLARITY Act und FinCEN: Eine Geschichte über zwei Krypto-Entwicklungen inmitten zunehmender Betrügereien
- Sep 06, 2026 at 06:35 am
- Die Kryptolandschaft ist eine merkwürdige Mischung: Regulierungskonflikte lockern sich mit dem CLARITY Act, während FinCEN Betrügereien in Höhe von unglaublichen 12,7 Milliarden US-Dollar meldet, was ein gespaltenes Narrativ in der Krypto-Haltung der USA verdeutlicht.

































