Close Menu
Cryprovideos
    What's Hot

    Will Shiba Inu (SHIB) Return to Backside Once more? Bitcoin's $70,000 Place Will get Difficult, Dogecoin (DOGE) Has By no means Been This Calm: Crypto Market Overview – U.As we speak

    April 14, 2026

    Pi Community’s PI Dumps to Native Lows as New Updates Fail to Enhance Investor Sentiment

    April 14, 2026

    KITE Crypto: Why $0.10 is Coming Inside 30 Days Regardless of Temporary Aid Rally

    April 14, 2026
    Facebook X (Twitter) Instagram
    Cryprovideos
    • Home
    • Crypto News
    • Bitcoin
    • Altcoins
    • Markets
    Cryprovideos
    Home»Bitcoin»Bitcoin Covenants: OP_CAT (BIP 347)
    Bitcoin Covenants: OP_CAT (BIP 347)
    Bitcoin

    Bitcoin Covenants: OP_CAT (BIP 347)

    By Crypto EditorMay 2, 2025No Comments6 Mins Read
    Share
    Facebook Twitter LinkedIn Pinterest Email


    That is the fifth article in a sequence deep diving into particular person covenant proposals which have reached a degree of maturity meriting an in-depth breakdown.

    OP_CAT, put ahead for reactivation in tapscript by Ethan Heilman and Armin Sabouri in BIP 347, is just not a covenant. It was an opcode that was initially included within the first launch of Bitcoin for manipulating knowledge components on the stack. It was deactivated in 2010 with the discharge of Bitcoin 0.3.10 together with quite a few different opcodes as a consequence of issues of denial of service assaults that might crash nodes. A worldwide most restrict of 520 bytes for any particular person merchandise on the stack whereas executing a script was additionally added. 

    It is best to have already got a fundamental understanding of how script analysis on the stack works, and the fundamental items of a bitcoin transaction, so there isn’t actually a lot pre-requisite explaining needed for OP_CAT. 

    Whereas OP_CAT will not be a covenant in and of itself, it may well emulate covenants as a consequence of a quirk in how Schnorr signatures work. This can be a fairly in depth subject, absolutely defined right here by Andrew Poelstra from Blockstream, so I’ll simply follow a excessive degree view. Each elliptic curve has a generator level, which is actually “0”, that’s used within the elliptic curve math for key era and signing. With Schnorr, you possibly can signal utilizing the generator level as a key, and provides or take a couple of bytes that it’s important to signal repeatedly to get proper, the ensuing signature is definitely the identical hash of the transaction you signed. 

    Put aside the mechanics of how that works mathematically for now, and simply keep in mind for later that these “bizarre” signatures can help you get the present transactions TXID on the stack. 

     How OP_CAT Works

    OP_CAT takes the highest two knowledge objects on the stack and concatenates them collectively. So if the highest two objects on the stack are “1” and “2”, OP_CAT removes each of them after which places “12” on prime of the stack. That’s it. 

    What Is OP_CAT Helpful For

    Okay, so what’s the large deal? Why is everybody freaking out about OP_CAT despite the fact that it’s so easy the reason of the way it works didn’t even take a full paragraph to write down? 

    Two causes, though given the character of OP_CAT I may give no ensures these are the one two causes. OP_CAT permits the development and verification of merkle bushes instantly on the stack, which opens the door to some attention-grabbing conduct and performance. It additionally permits emulation of covenants enabling full granular introspection because of the “bizarre” Schnorr signatures talked about above. 

    Merkle proof verification is a key element of Taproot, however the best way it’s applied merkle tree verification solely happens within the context of verifying {that a} tapscript spending path is dedicated to within the root Schnorr public key within the output script of the coin being spent. Taproot doesn’t assist generic merkle proof verification. 

    OP_CAT permits this in a completely generic method. Merely offering the leaf hash(es) after which inside hash nodes in the precise order and calling OP_CAT successively will can help you reconstruct a merkle root hash, and evaluate towards a pre-defined hash within the script. You can do that to offer unilateral withdrawal paths for shared UTXOs like in CatVM, you possibly can make transactions depending on different transactions having been included in a block with legitimate work, you may make a transaction depending on just about any situation that may be verified with a merkle proof. 

    Now, for the covenant emulation that allows full introspection. What you are attempting to do is be sure that a transaction has to have sure traits to be legitimate. Bear in mind now that the “bizarre” signature will get the hash of the transaction on the stack. A transaction signature isn’t truly achieved over the uncooked transaction, it’s achieved over its hash. This permits us to do one thing attention-grabbing. 

    You possibly can assemble very sophisticated and convoluted scripts utilizing OP_CAT to take the person uncooked items of the transaction as a part of the witness, and slowly put them collectively on the stack with OP_CAT. Alongside the best way, particular person items of the transaction might be checked towards predefined hashes by simply hashing them and utilizing OP_EQUAL. On the finish of the script you’ve the complete transaction on the stack itself, and might append the required knowledge to it after which hash it, as soon as once more evaluating it with OP_EQUAL, this time towards the “bizarre” signature. If that verify passes, a traditional CHECKSIG might be run and so long as the “bizarre” signature was made with the transaction being spent, every part executes as legitimate. 

    The OP_EQUAL checks of particular person items of the transaction alongside the best way assure that these items of the transaction are precisely what they need to be. If any of them fails verification, the transaction is invalid. This enforces the emulated covenants. On the finish, if the transaction hash constructed with OP_CAT and the “bizarre’ signature match, then the ultimate CHECKSIG ensures that the transaction constructed with OP_CAT and checked towards the emulated covenant matches the precise transaction being spent on the time. 

    Closing Ideas

    OP_CAT blows open the doorways of introspection and ahead knowledge carrying utterly. Introspection might be completed to any granular diploma desired, with every particular person area of the transaction with the ability to be independently dedicated to. It permits all the identical introspective capabilities that TXHASH does, after which some. 

    The aptitude to confirm generic merkle proofs can be a strong performance, however brings into query how that functionality can be used, and what kind of incentives that might create. Bitcoin scripts might be constructed requiring some transaction be made on exterior blockchain techniques, so long as they use merkle bushes constructed with the hash features out there in Bitcoin script. 

    Whereas OP_CAT is itself not a covenant, it permits full emulation of covenants with a a lot much less environment friendly blockchain footprint (and potential for builders to make errors and burn cash). It’s a proposal that regardless of being extremely easy itself, must be approached cautiously given the huge design area it opens up. 



    Supply hyperlink

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email

    Related Posts

    Will Shiba Inu (SHIB) Return to Backside Once more? Bitcoin's $70,000 Place Will get Difficult, Dogecoin (DOGE) Has By no means Been This Calm: Crypto Market Overview – U.As we speak

    April 14, 2026

    Bitcoin Worth Pumps 6% Close to $75,000 As Shorts Liquidate

    April 14, 2026

    One thing Dangerous Is Coming For Bitcoin: Analyst Says BTC Has Entered This Bearish Promote Zone | Bitcoinist.com

    April 14, 2026

    $420K BTC Lifesavings Gone in Minutes — The Pretend Ledger App Rip-off Defined

    April 14, 2026
    Latest Posts

    Will Shiba Inu (SHIB) Return to Backside Once more? Bitcoin's $70,000 Place Will get Difficult, Dogecoin (DOGE) Has By no means Been This Calm: Crypto Market Overview – U.As we speak

    April 14, 2026

    Bitcoin Worth Pumps 6% Close to $75,000 As Shorts Liquidate

    April 14, 2026

    One thing Dangerous Is Coming For Bitcoin: Analyst Says BTC Has Entered This Bearish Promote Zone | Bitcoinist.com

    April 14, 2026

    $420K BTC Lifesavings Gone in Minutes — The Pretend Ledger App Rip-off Defined

    April 14, 2026

    Bitcoin Hits $74,000 As ETF Inflows Face Miner Promoting And Battle Tensions

    April 13, 2026

    BItcoin value information: BTC retakes $73,000 as oil offers up features, shares advance

    April 13, 2026

    BTC Lengthy-Time period Prediction – Right here Is Why Bitcoin’s Subsequent Decade Might Be Even Greater – BlockNews

    April 13, 2026

    Bitcoin Has Hit The Final Bull Lure, However The Accumulation Degree Lies A lot Decrease

    April 13, 2026

    CryptoVideos.net is your premier destination for all things cryptocurrency. Our platform provides the latest updates in crypto news, expert price analysis, and valuable insights from top crypto influencers to keep you informed and ahead in the fast-paced world of digital assets. Whether you’re an experienced trader, investor, or just starting in the crypto space, our comprehensive collection of videos and articles covers trending topics, market forecasts, blockchain technology, and more. We aim to simplify complex market movements and provide a trustworthy, user-friendly resource for anyone looking to deepen their understanding of the crypto industry. Stay tuned to CryptoVideos.net to make informed decisions and keep up with emerging trends in the world of cryptocurrency.

    Top Insights

    Zombie Punk Sells For $1.08M – Is The NFT Market Recovering?

    May 19, 2025

    What Russia’s Crypto Regulation Overhaul Means for Traders and Market Entry | Bitcoinist.com

    January 15, 2026

    Greatest Crypto Pairs to Commerce in July – SOL, HYPE, XRP, VIRTUAL | UseTheBitcoin

    July 2, 2025

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    • Home
    • Privacy Policy
    • Contact us
    © 2026 CryptoVideos. Designed by MAXBIT.

    Type above and press Enter to search. Press Esc to cancel.