Close Menu
KumbhCoinorg
    What's Hot

    My Sunday Song – “Wisdom” by Jonny Lang – 2 Loud 2 Old Music

    March 22, 2026

    Pesona Religi Dan Keindahan Senja Di Pura Batu Bolong 2026 » Dashofinsight

    March 22, 2026

    Virat Kohli BRUTALLY trolls media on India-London chartered flight rumours

    March 22, 2026
    Facebook X (Twitter) Instagram
    Trending
    • My Sunday Song – “Wisdom” by Jonny Lang – 2 Loud 2 Old Music
    • Pesona Religi Dan Keindahan Senja Di Pura Batu Bolong 2026 » Dashofinsight
    • Virat Kohli BRUTALLY trolls media on India-London chartered flight rumours
    • PSG move back to top with 4-0 win
    • NHL Rumors: What will the Vancouver Canucks do with Elias Pettersson?
    • Comic Relief helps fund free school uniform charity
    • Adam Back Confirmed As A Bitcoin 2026 Speaker
    • ‘The Drama’ star Robert Pattinson reveals that he used to lie about being Michael Jackson’s son |
    Facebook X (Twitter) Instagram
    KumbhCoinorg
    Sunday, March 22
    • Home
    • Crypto News
      • Bitcoin & Altcoins
      • Blockchain Trends
      • Forex News
    • Kumbh Mela
    • Entertainment
      • Celebrity Gossip
      • Movie & TV Reviews
      • Music Industry News
    • Market News
      • Global Economy Insights
      • Real Estate Trends
      • Stock Market Updates
    • Education
      • Career Development
      • Online Learning
      • Study Tips
    • Airdrop News
      • Ico News
    • Sports
      • Cricket
      • Football
      • hockey
    KumbhCoinorg
    Home»Crypto News»Bitcoin Covenants: OP_CAT (BIP 347)
    Crypto News

    Bitcoin Covenants: OP_CAT (BIP 347)

    kumbhorgBy kumbhorgMay 4, 2025No Comments6 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    Bitcoin Covenants: OP_CAT (BIP 347)
    Share
    Facebook Twitter LinkedIn Pinterest Email Copy Link

    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 stack with OP_CAT. Along the way, individual pieces of the transaction can be checked against predefined hashes by just hashing them and using OP_EQUAL. At the end of the script you have the full transaction on the stack itself, and can append the necessary data to it and then hash it, once again comparing it with OP_EQUAL, this time against the “weird” signature. If that check passes, a normal CHECKSIG can be run and as long as the “weird” signature was made with the transaction being spent, everything executes as valid. 

    The OP_EQUAL checks of individual pieces of the transaction along the way guarantee that those pieces of the transaction are exactly what they should be. If any of them fails verification, the transaction is invalid. This enforces the emulated covenants. At the end, if the transaction hash constructed with OP_CAT and the “weird’ signature match, then the final CHECKSIG guarantees that the transaction constructed with OP_CAT and checked against the emulated covenant matches the actual transaction being spent at the time. 

    Closing Thoughts

    OP_CAT blows open the doors of introspection and forward data carrying completely. Introspection can be accomplished to any granular degree desired, with each individual field of the transaction being able to be independently committed to. It enables all the same introspective capabilities that TXHASH does, and then some. 

    The capability to verify generic merkle proofs is also a powerful functionality, but brings into question how that capability will be used, and what type of incentives that could create. Bitcoin scripts could be constructed requiring some transaction be made on external blockchain systems, as long as they use merkle trees built with the hash functions available in Bitcoin script. 

    While OP_CAT is itself not a covenant, it allows full emulation of covenants with a much less efficient blockchain footprint (and potential for developers to make mistakes and burn money). It is a proposal that despite being incredibly simple itself, should be approached cautiously given the massive design space it opens up. 

    BIP Bitcoin Covenants OP_CAT
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleBabil Khan’s team makes an official statement about his viral breakdown video: ‘widely misinterpreted and taken out of context…’ | Hindi Movie News
    Next Article How Canada’s Mark Carney plans to win over Donald Trump
    kumbhorg
    • Website
    • Tumblr

    Related Posts

    Crypto News

    Adam Back Confirmed As A Bitcoin 2026 Speaker

    By kumbhorgMarch 22, 2026
    Bitcoin & Altcoins

    Bitcoin Exchange Inflows Spike as BTC USD Price Hits $75K Resistance

    By kumbhorgMarch 22, 2026
    Blockchain Trends

    Cryptonews’ Best Meme Coins To Watch During The Market Dip

    By kumbhorgMarch 22, 2026
    Forex News

    XAG/USD plunges, clearing key levels below $70

    By kumbhorgMarch 22, 2026
    Crypto News

    Bitcoin Price Holds $70,000 As War-Driven Inflation Fear Rises

    By kumbhorgMarch 21, 2026
    Bitcoin & Altcoins

    Trump Crypto Mar-a-Lago Gala: How 297 Wallets Are Moving the MAGA Market

    By kumbhorgMarch 21, 2026
    Add A Comment

    Comments are closed.

    Don't Miss

    My Sunday Song – “Wisdom” by Jonny Lang – 2 Loud 2 Old Music

    By kumbhorgMarch 22, 2026

    For My Sunday Song #476, we are going to go all blues with “Wisdom” by…

    Pesona Religi Dan Keindahan Senja Di Pura Batu Bolong 2026 » Dashofinsight

    March 22, 2026

    Virat Kohli BRUTALLY trolls media on India-London chartered flight rumours

    March 22, 2026

    PSG move back to top with 4-0 win

    March 22, 2026
    Top Posts

    Satwik-Chirag storm into China Masters final with straight-game win over Malaysia | Badminton News

    September 21, 2025165 Views

    SaucerSwap SAUCE Crypto Breaks Key Resistance Amid Nvidia-Hedera Deal

    July 15, 202546 Views

    Unlocking Your Potential with Mubite: The Future of Crypto Prop Trading

    September 17, 202533 Views

    Stablecoins 2025 Exchange Reserves: Insights into DeFi Trends

    September 8, 202532 Views
    Stay In Touch
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    • YouTube
    • Vimeo
    About Us

    Welcome to KumbhCoin!
    At KumbhCoin, we strive to create a unique blend of cultural and technological news for a diverse audience. Our platform bridges the spiritual significance of the Kumbh Mela with the dynamic world of cryptocurrency and general news.

    Facebook X (Twitter) Pinterest WhatsApp
    Our Picks

    My Sunday Song – “Wisdom” by Jonny Lang – 2 Loud 2 Old Music

    March 22, 2026

    Pesona Religi Dan Keindahan Senja Di Pura Batu Bolong 2026 » Dashofinsight

    March 22, 2026

    Virat Kohli BRUTALLY trolls media on India-London chartered flight rumours

    March 22, 2026
    Most Popular

    7 things to know before the bell

    January 22, 20250 Views

    Reeves optimistic despite surprise rise in UK borrowing

    January 22, 20250 Views

    Barnes & Noble stock soars 20% as it explores a sale Barnes & Noble stock soars 20% as it explores a sale

    January 22, 20250 Views
    • Terms and Conditions
    • Privacy Policy
    • Contact Us
    • About Us
    © 2026 Kumbhcoin. Designed by Webwizards7.

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