Sunday, December 7, 2025
Crypto Marketcap
No Result
View All Result
3K Crypto
  • Home
  • Bitcoin
  • Crypto Updates
    • General
    • Altcoin
    • Ethereum
    • Crypto Exchanges
  • NFT
  • Blockchain
  • Regulations
  • Metaverse
  • Web3
  • DeFi
  • Scam Alert
  • Analysis
3K Crypto
  • Home
  • Bitcoin
  • Crypto Updates
    • General
    • Altcoin
    • Ethereum
    • Crypto Exchanges
  • NFT
  • Blockchain
  • Regulations
  • Metaverse
  • Web3
  • DeFi
  • Scam Alert
  • Analysis
No Result
View All Result
3K Crypto
No Result
View All Result

Bitcoin Covenants: OP_CAT (BIP 347)

May 4, 2025
in Bitcoin
Reading Time: 4 mins read
0 0
A A
0
Home Bitcoin
Share on FacebookShare on Twitter


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, just isn’t a covenant. It was an opcode that was initially included within the first launch of Bitcoin for manipulating knowledge parts on the stack. It was deactivated in 2010 with the discharge of Bitcoin 0.3.10 together with quite a few different opcodes because of considerations of denial of service assaults that would crash nodes. A world most restrict of 520 bytes for any particular person merchandise on the stack whereas executing a script was additionally added. 

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

Whereas OP_CAT might not be a covenant in and of itself, it will probably emulate covenants because of a quirk in how Schnorr signatures work. This can be a fairly in depth subject, totally defined right here by Andrew Poelstra from Blockstream, so I’ll simply stick to a excessive stage view. Each elliptic curve has a generator level, which is basically “0”, that’s used within the elliptic curve math for key technology and signing. With Schnorr, you’ll be able to signal utilizing the generator level as a key, and provides or take just a few bytes that it’s a must 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 permit you to get the present transactions TXID on the stack. 

Table of Contents

Toggle
  •  How OP_CAT Works
  • What Is OP_CAT Helpful For
  • Closing Ideas

 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 high 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 regardless that it’s so easy the reason of the way it works didn’t even take a full paragraph to jot 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 habits and performance. It additionally permits emulation of covenants enabling full granular introspection as a result of “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 help 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 proper order and calling OP_CAT successively will permit you to reconstruct a merkle root hash, and evaluate in opposition to a pre-defined hash within the script. You would do that to offer unilateral withdrawal paths for shared UTXOs like in CatVM, you can make transactions depending on different transactions having been included in a block with legitimate work, you can also 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 accomplished over the uncooked transaction, it’s accomplished over its hash. This permits us to do one thing attention-grabbing. 

You may assemble very difficult 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 may be checked in opposition to predefined hashes by simply hashing them and utilizing OP_EQUAL. On the finish of the script you will have the complete transaction on the stack itself, and may append the mandatory knowledge to it after which hash it, as soon as once more evaluating it with OP_EQUAL, this time in opposition to the “bizarre” signature. If that examine passes, a standard CHECKSIG may 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 in opposition to 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 may be completed to any granular diploma desired, with every particular person subject of the transaction having the ability to be independently dedicated to. It allows all the identical introspective capabilities that TXHASH does, after which some. 

The potential to confirm generic merkle proofs can also be a strong performance, however brings into query how that functionality can be used, and what sort of incentives that would create. Bitcoin scripts might be constructed requiring some transaction be made on exterior blockchain methods, so long as they use merkle bushes constructed with the hash features obtainable 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 house it opens up. 



Source link

Tags: BIPBitcoinCovenantsOP_CAT
Previous Post

Analyst Says Watch This Level

Next Post

Finovate Global: Meet the International Alums of FinovateSpring 2025

Related Posts

Here’s Why XRP Positions Itself As Treasury-Grade Rail For Institutions Moving Trillions
Bitcoin

Here’s Why XRP Positions Itself As Treasury-Grade Rail For Institutions Moving Trillions

December 7, 2025
One Break Above This Zone Could Ignite A Run To 7,000
Bitcoin

One Break Above This Zone Could Ignite A Run To $107,000

December 7, 2025
What Does BTC Mean in Text? Crypto and Slang Defined
Bitcoin

What Does BTC Mean in Text? Crypto and Slang Defined

December 7, 2025
“It’s About Protecting Investor Confidence”
Bitcoin

“It’s About Protecting Investor Confidence”

December 6, 2025
Polymarket Builds Internal Market-Making Team
Bitcoin

Polymarket Builds Internal Market-Making Team

December 6, 2025
Bitcoin Price Falls Below ,000 — Is The Recovery Over?
Bitcoin

Bitcoin Price Falls Below $90,000 — Is The Recovery Over?

December 6, 2025
Next Post
Finovate Global: Meet the International Alums of FinovateSpring 2025

Finovate Global: Meet the International Alums of FinovateSpring 2025

Las Vegas Bitcoin Conference Extends Invitation To Roswell, New Mexico Mayor And City Council

Las Vegas Bitcoin Conference Extends Invitation To Roswell, New Mexico Mayor And City Council

Senator Lummis Says Trump Supports Her BITCOIN Act That Could Erase U.S. Debt

Senator Lummis Says Trump Supports Her BITCOIN Act That Could Erase U.S. Debt

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Facebook Twitter Instagram Youtube
3K Crypto

Stay updated with 3K Crypto – your go-to destination for the latest cryptocurrency news, in-depth market analysis, expert opinions, and educational resources. Empowering you to navigate the world of digital currencies and blockchain technology.

CATEGORIES

  • Altcoin
  • Analysis
  • Bitcoin
  • Blockchain
  • Crypto Exchanges
  • Crypto Updates
  • DeFi
  • Ethereum
  • Metaverse
  • NFT
  • Regulations
  • Scam Alert
  • Uncategorized
  • Web3
No Result
View All Result

SITEMAP

  • About Us
  • Advertise With Us
  • Disclaimer
  • Privacy Policy
  • DMCA
  • Cookie Privacy Policy
  • Terms and Conditions
  • Contact us

Copyright © 2025 3K Crypto.
3K Crypto is not responsible for the content of external sites.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
  • bitcoinBitcoin(BTC)$89,011.00-0.75%
  • ethereumEthereum(ETH)$3,034.880.02%
  • tetherTether(USDT)$1.00-0.01%
  • rippleXRP(XRP)$2.03-0.10%
  • binancecoinBNB(BNB)$887.040.11%
  • usd-coinUSDC(USDC)$1.000.02%
  • solanaSolana(SOL)$131.86-0.84%
  • tronTRON(TRX)$0.284979-1.86%
  • staked-etherLido Staked Ether(STETH)$3,034.14-0.11%
  • dogecoinDogecoin(DOGE)$0.138644-0.68%
No Result
View All Result
  • Home
  • Bitcoin
  • Crypto Updates
    • General
    • Altcoin
    • Ethereum
    • Crypto Exchanges
  • NFT
  • Blockchain
  • Regulations
  • Metaverse
  • Web3
  • DeFi
  • Scam Alert
  • Analysis
Crypto Marketcap

Copyright © 2025 3K Crypto.
3K Crypto is not responsible for the content of external sites.