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

Calls USA No. 1 in Crypto and AI

15/07/2026

Ripple RLUSD Beta Tests Put XRP Ledger Stablecoin Strategy Back In Focus

15/07/2026

Bitcoin’s recovery to $64K on hold? KEY metrics flash mixed signals after leverage wipeout

15/07/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

    Bitcoin’s recovery to $64K on hold? KEY metrics flash mixed signals after leverage wipeout

    15/07/2026

    Bulls and Bears Both Get Tested as Market Eyes $60,000 Support

    15/07/2026

    BTC’s Structure Remains Bearish Until This Key Level Is Reclaimed

    15/07/2026

    Whales Long Bitcoin With 40x Leverage as Strategy Dumps $216M BTC

    15/07/2026

    Robinhood Chain Bridges $141M In ETH As Eric Trump Calls The Bottom

    15/07/2026

    Ethereum price slips under $1,800 but charts still point to $2,140 target

    15/07/2026

    Which way is Ethereum headed? What to expect as bulls and bears fight for ETH

    15/07/2026

    Tom Lee’s BitMine ether holdings rise to 5.77 million tokens, or 4.8% of total supply

    15/07/2026

    Ripple RLUSD Beta Tests Put XRP Ledger Stablecoin Strategy Back In Focus

    15/07/2026

    How Its Speed Widened a $70B Risk

    15/07/2026

    Solana activity hits 1 billion milestone – Is a SOL price surge next?

    15/07/2026

    PYTH Price Jumps 25% as Pyth Core Upgrade Nears July 31 Rollout

    15/07/2026

    Jeffrey Huang Sells BAYC NFT at Loss to Boost Ethereum Long Position

    14/07/2026

    Bitcoin’s BIP-110 sparked a fight over who gets to decide the future of Bitcoin

    14/07/2026

    Welcomed by Robinhood Chain — And Why It’s Not Just Hype

    11/07/2026

    BIG3 NFT Buyers Sue Ice Cube’s Basketball League Over Alleged Unfulfilled Promises

    08/07/2026

    Calls USA No. 1 in Crypto and AI

    15/07/2026

    Ripple RLUSD Beta Tests Put XRP Ledger Stablecoin Strategy Back In Focus

    15/07/2026

    Bitcoin’s recovery to $64K on hold? KEY metrics flash mixed signals after leverage wipeout

    15/07/2026

    Robinhood Chain Bridges $141M In ETH As Eric Trump Calls The Bottom

    15/07/2026
  • Blockchain

    Robinhood Chain sees over $70M in ETH bridged during first week

    14/07/2026

    HSBC completes first tokenized structured product pilot for institutional investors

    14/07/2026

    Solana Captures 95% of Tokenized Equity Trading as RWA Value Hits $3.6B

    14/07/2026

    Bbridge launches Dollar Parking app for USDT-based tokenized US stock trading

    14/07/2026

    Loopring Confirms All L2 and DEX History Remains Accessible After Network Shutdown

    14/07/2026
  • DeFi

    How Aave v4’s Growth in frxUSD Deposits Could Influence the Market

    14/07/2026

    Sui’s Hashi to Enable Native Bitcoin as Collateral, Global Testnet Launch Nears

    14/07/2026

    Cap ‘stabledrop’ U-turn sees cUSD drop $23M, founder denies self dealing claims

    14/07/2026

    Can Aave Stablecoin Yield Catch Morpho’s $200M Fintech Head Start?

    14/07/2026

    Gondor launches cross margin borrowing for Polymarket portfolios

    14/07/2026
  • Metaverse

    Is Solana Gaming Back? Kintara Activity Fuels Renewed Optimism in Onchain MMOs

    24/06/2026

    The Sandbox launches AI game engine ‘The Sandbox Studio’ for next-generation creators

    10/06/2026

    Meta commits $13M in funding for Oversight Board through 2028

    29/05/2026

    Why Animoca’s Yat Siu says the future is 100 billion AI agents

    07/05/2026

    ‘8,000 Jobs’—Polymarket Sees Tech Layoff Surge As Meta AI Push Bites

    18/04/2026
  • Regulation

    Calls USA No. 1 in Crypto and AI

    15/07/2026

    BlackRock-managed crypto holdings fall by $29 billion in H1 2026

    15/07/2026

    What Spiko Finance’s Debut Means for the $800M SAFO Fund

    15/07/2026

    Gemini’s Yield Insights on $STRC Stand Out — Here’s What It Means

    15/07/2026

    Why Binance Just Plans to Lead Mesh’s $2B Funding Round — And What It Signals

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

    Oobit expands Tether-backed crypto Visa Card to Guatemala, Paraguay

    15/07/2026

    Standard Chartered and LMAX Group Execute First Live Digital Asset Prime Brokerage Trades

    15/07/2026

    1inch Integrates With Robinhood Chain to Enable Stock Token Trading

    15/07/2026

    Yield-bearing stablecoin slowdown ends three-year run for crypto-native products

    15/07/2026

    ICO market slows sharply with only six completions in 2026

    30/04/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

    Yield Guild Games Sunsets YGG Play Publishing Unit, Cuts 35 Jobs

    06/07/2026

    GO1 and Xiaohai Set up Potential Rematch at EWC 2026 Fatal Fury Bracket in Paris

    06/07/2026

    Nexus Acquires Homegrown App Marketplace One Store, Expanding into Global Web3 Game Hub

    21/06/2026

    GMATRIXS and Plum Protocol Partner to Blend GameFi with Meme Assets, Driving Multi-Chain Web3 User Experience

    16/06/2026

    ‘Not All Megawatts Are Created Equally’ in AI Race

    14/07/2026

    Bitcoin’s 14th Difficulty Reset Slashes Mining Pressure by 6.7 Trillion

    13/07/2026

    Solo Home Miner Wins $200,000 With a $150 Mining Device

    13/07/2026

    Why Bitcoin miners are holding 1.19M BTC despite 10% mining stock losses

    13/07/2026

    Poland’s MiCA Deadlock Leaves 2,000 Crypto Firms Without Domestic Licensing Route

    15/07/2026

    Is OpenUSD the answer to bank push back on CLARITY? Hints stablecoin yield concessions will fail

    15/07/2026

    Supreme Court Overturns Humphrey’s Executor, Clearing Trump to Fire SEC and CFTC Commissioners

    15/07/2026

    VARA Dubai emerges as UAE’s most popular regulator with 50th VASP issued license

    15/07/2026

    Calls USA No. 1 in Crypto and AI

    15/07/2026

    Ripple RLUSD Beta Tests Put XRP Ledger Stablecoin Strategy Back In Focus

    15/07/2026

    Bitcoin’s recovery to $64K on hold? KEY metrics flash mixed signals after leverage wipeout

    15/07/2026

    Robinhood Chain Bridges $141M In ETH As Eric Trump Calls The Bottom

    15/07/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

NBTC is the editorial account for NBTC News, covering Bitcoin, Ethereum, DeFi, blockchain infrastructure, exchanges, mining, regulation and digital asset markets. The editorial team focuses on clear sourcing, timely updates and practical context for crypto readers.

Related Posts

Bitcoin’s recovery to $64K on hold? KEY metrics flash mixed signals after leverage wipeout

15/07/2026

Bulls and Bears Both Get Tested as Market Eyes $60,000 Support

15/07/2026

BTC’s Structure Remains Bearish Until This Key Level Is Reclaimed

15/07/2026

Whales Long Bitcoin With 40x Leverage as Strategy Dumps $216M BTC

15/07/2026
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

Calls USA No. 1 in Crypto and AI

15/07/2026

Ripple RLUSD Beta Tests Put XRP Ledger Stablecoin Strategy Back In Focus

15/07/2026

Bitcoin’s recovery to $64K on hold? KEY metrics flash mixed signals after leverage wipeout

15/07/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.