Close Menu
  • Coins
    • Bitcoin
    • Ethereum
    • Altcoins
    • NFT
  • Blockchain
  • DeFi
  • Metaverse
  • Regulation
  • Other
    • Exchanges
    • ICO
    • GameFi
    • Mining
    • Legal
  • MarketCap
What's Hot

Hash2cash Bets on Tokenized Hashrate; Executive Rejects AI Pivot

15/03/2026

Inside Trump’s surreal Mar-a-Lago crypto summit

15/03/2026

US Treasury Submits GENIUS Act Crypto Report to Congress

15/03/2026
Facebook X (Twitter) Instagram
  • Back to NBTC homepage
  • Privacy Policy
  • Contact
X (Twitter) Telegram Facebook LinkedIn RSS
NBTC News
  • Coins
    1. Bitcoin
    2. Ethereum
    3. Altcoins
    4. NFT
    5. View All

    Price Breaks All-Time High Record Again – Here’s What We Know

    04/08/2025

    Bitcoin Switzerland? El Salvador to Host First Fully Native Bitcoin Capital Markets

    04/08/2025

    Bitcoin Breaks $119K, but XLM and HBAR Aren’t Impressed by Its Meager Percentage Gain

    04/08/2025

    High-Stakes Consolidation Could Define Q3 Trend

    04/08/2025

    Crypto Whale Loses $74M Longing ETH, Left With Just $8.5K on Hyperliquid

    14/03/2026

    The number of active Ethereum addresses drops nearly 50% in less than a month

    14/03/2026

    Ethereum ETF Flows Hide Clues To A 10% Price Recovery

    14/03/2026

    ETH Uptrend Persists While Buterin Defends Network Neutrality

    14/03/2026

    The Sui Ecosystem’s Top 3 Altcoin Performers

    29/07/2025

    Floki Launches $69000 Guerrilla Marketing Challenge With FlokiUltras3

    28/07/2025

    Crypto Beast denies role in Altcoin (ALT) crash rug pull, blames snipers

    28/07/2025

    $1.6 Billion XRP Surge: Here’s What’s Unfolding

    28/07/2025

    Pudgy Penguins ($PENGU) Dominates the Top NFT Projects by Social Activity

    13/03/2026

    SpoonOS distributes first NFT rewards to Skill Capture Campaign participants

    11/03/2026

    Top NFT Sales of the Week, Flying Tulip Takes Top Spot

    09/03/2026

    McLaren F1 Debuts Hedera-Powered MCL/COLLECT Digital Collectibles for 2026 Race Weekends

    08/03/2026

    Hash2cash Bets on Tokenized Hashrate; Executive Rejects AI Pivot

    15/03/2026

    Inside Trump’s surreal Mar-a-Lago crypto summit

    15/03/2026

    US Treasury Submits GENIUS Act Crypto Report to Congress

    15/03/2026

    R3E Network deploys TEE-powered oracle, pricefeed system on Neo N3 MainNet

    15/03/2026
  • Blockchain

    Hash2cash Bets on Tokenized Hashrate; Executive Rejects AI Pivot

    15/03/2026

    R3E Network deploys TEE-powered oracle, pricefeed system on Neo N3 MainNet

    15/03/2026

    ENI Integrates with REI Network to Deliver Zero-Gas, Enterprise-Grade Blockchain Performance

    15/03/2026

    Brave Introduces Cross-Chain Swaps for Bitcoin, Solana, Zcash, and Cardano Supported by NEAR Intents

    15/03/2026

    Sui Blockchain’s Strategic Integration of OpenZeppelin Fortifies Smart Contract Security

    15/03/2026
  • DeFi

    MEV bot makes $10M in $50M crypto swap gone wrong

    14/03/2026

    Why Euro Stablecoins’ DeFi Market Share Remains Low

    14/03/2026

    The Identity of the Mysterious Altcoin Whale Who Made a Huge $50 Million Mistake May Be Revealed! There’s a Bitcoin Connection!

    14/03/2026

    The DeFi Altcoins Developers Have Focused On Most Over the Past Month Have Been Revealed—Here’s the List

    14/03/2026

    Morpho Network Collaborates With Wheelx.Fi’s DEX To Bring Cross-Chain Applications In Its DeFi Lending Protocol And Enhance User Experience

    14/03/2026
  • Metaverse

    Meta expands AI agent push with Moltbook acquisition

    10/03/2026

    ‘The Sandbox’ Adds Web-Based Games in Season 7 Accessibility Push

    24/02/2026

    AMD jumps as Meta signs multiyear AI infrastructure partnership

    24/02/2026

    Corning shares surge over 16% after Meta signs $6B data center deal

    27/01/2026

    Mark Zuckerberg’s Meta signs $6B fiber deal with Corning to expand US data centers

    27/01/2026
  • Regulation

    Inside Trump’s surreal Mar-a-Lago crypto summit

    15/03/2026

    RWA issuers prioritize capital formation over liquidity, according to Brickken survey

    15/03/2026

    Dubai takes next step to make real estate flips instant in $16 billion tokenization plan

    15/03/2026

    Details of New Tariffs to Be Implemented Leaked Before Donald Trump’s Speech – Here Are the Details

    15/03/2026

    US President Donald Trump Makes a Statement on Tariffs – LIVE

    15/03/2026
  • Other
    1. Exchanges
    2. ICO
    3. GameFi
    4. Mining
    5. Legal
    6. View All

    Nasdaq follows Cboe joining world of ‘binary bets’ as prediction market craze hits Wall Street

    15/03/2026

    Crypto-friendly fintech giant Revolut files for U.S. banking license

    15/03/2026

    Kraken Just Plugged Into the Fed’s Payment System. Here’s Why It Matters

    15/03/2026

    Backpack Exchange Taps Ex-CFTC Chief Mark Wetjen to Lead U.S. Expansion

    14/03/2026

    South Korea Poised to Lift Ban on Domestic ICOs After 7 Years

    19/12/2025

    Why 2025’s Token Boom Looks Both Familiar and Dangerous

    31/10/2025

    ICO for bitcoin yield farming chain Corn screams we’re so back

    22/01/2025

    Why 2025 Will See the Comeback of the ICO

    26/12/2024

    6 Best Crypto Games For Android in 2026

    12/03/2026

    Pudgy Penguins launches its ‘Club Penguin’ moment, and the game doesn’t feel like crypto at all

    10/03/2026

    WORLD3 Partners PlaysOut to Bring AI Agents into Web3 Gaming

    10/03/2026

    Pudgy Penguins Launches ‘Pudgy World’ Browser Game

    10/03/2026

    Crypto miners must put their Bitcoin to work to survive: Wintermute

    14/03/2026

    Bitcoin miners saw the AI power crunch coming — and the nuclear revival

    14/03/2026

    Bitcoin miners turn to AI as halving and energy costs crush profits

    14/03/2026

    South African Eskom Considering Discount Power for Bitcoin Miners as Solar Creates Surplus

    14/03/2026

    US Treasury Submits GENIUS Act Crypto Report to Congress

    15/03/2026

    South Korean Courts Consider Writing Off Crypto Investment Debts in Personal Bankruptcy Cases

    15/03/2026

    CFTC Chief Just Said “We Do Not Decide What You Should Trade”

    15/03/2026

    Mirae Asset’s Planned Korbit Acquisition Faces Daunting Regulatory Hurdles in South Korea

    15/03/2026

    Hash2cash Bets on Tokenized Hashrate; Executive Rejects AI Pivot

    15/03/2026

    Inside Trump’s surreal Mar-a-Lago crypto summit

    15/03/2026

    US Treasury Submits GENIUS Act Crypto Report to Congress

    15/03/2026

    R3E Network deploys TEE-powered oracle, pricefeed system on Neo N3 MainNet

    15/03/2026
  • MarketCap
NBTC News
Home»Bitcoin»Bitcoin Covenants: OP_CAT (BIP 347)
Bitcoin

Bitcoin Covenants: OP_CAT (BIP 347)

NBTCBy NBTC25/05/2025No Comments6 Mins Read
Share
Facebook Twitter LinkedIn Pinterest Email


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.

This post Bitcoin Covenants: OP_CAT (BIP 347) first appeared on Bitcoin Magazine and is written by Shinobi.

Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
NBTC

Related Posts

Price Breaks All-Time High Record Again – Here’s What We Know

04/08/2025

Bitcoin Switzerland? El Salvador to Host First Fully Native Bitcoin Capital Markets

04/08/2025

Bitcoin Breaks $119K, but XLM and HBAR Aren’t Impressed by Its Meager Percentage Gain

04/08/2025

High-Stakes Consolidation Could Define Q3 Trend

04/08/2025
Add A Comment

Comments are closed.

Top Posts
Get Informed

Subscribe to Updates

Get the latest news from NBTC regarding crypto, blockchains and web3 related topics.

Your source for the serious news. This website is crafted specifically to for crazy and hot cryptonews. Visit our main page for more tons of news.

We're social. Connect with us:

Facebook X (Twitter) LinkedIn RSS
Top Insights

Hash2cash Bets on Tokenized Hashrate; Executive Rejects AI Pivot

15/03/2026

Inside Trump’s surreal Mar-a-Lago crypto summit

15/03/2026

US Treasury Submits GENIUS Act Crypto Report to Congress

15/03/2026
Get Informed

Subscribe to Updates

Get the latest news from NBTC regarding crypto, blockchains and web3 related topics.

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