By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
Notification
yourcryptonewstoday yourcryptonewstoday
  • Home
  • News
    • Crypto Bubbles
    • Regulations
    • Metaverse
  • MarketCap
  • Altcoins
    • Solana
  • Crypto
    • Bitcoin
    • Ethereum
    • Cardano
  • Blockchain
  • Market
    • Nft
  • Mining
  • Exchange
  • Analysis
    • Evaluation
    • Multi Currency
Reading: Bitcoin Covenants: CHECKTEMPLATEVERIFY (BIP 119)
Share
bitcoin
Bitcoin (BTC) $ 72,129.00
ethereum
Ethereum (ETH) $ 2,224.74
tether
Tether (USDT) $ 1.00
bnb
BNB (BNB) $ 603.73
usd-coin
USDC (USDC) $ 0.999776
xrp
XRP (XRP) $ 1.34
binance-usd
BUSD (BUSD) $ 0.998757
dogecoin
Dogecoin (DOGE) $ 0.092266
cardano
Cardano (ADA) $ 0.241424
solana
Solana (SOL) $ 83.39
polkadot
Polkadot (DOT) $ 1.18
tron
TRON (TRX) $ 0.32008
Your Crypto News TodayYour Crypto News Today
  • Home
  • News
  • MarketCap
  • Altcoins
  • Crypto
  • Blockchain
  • Market
  • Mining
  • Exchange
  • Analysis
Search
  • Home
  • News
    • Crypto Bubbles
    • Regulations
    • Metaverse
  • MarketCap
  • Altcoins
    • Solana
  • Crypto
    • Bitcoin
    • Ethereum
    • Cardano
  • Blockchain
  • Market
    • Nft
  • Mining
  • Exchange
  • Analysis
    • Evaluation
    • Multi Currency
© 2024 All Rights reserved | Protected by Your Cryptonews Today
Your Crypto News Today > News > Crypto > Bitcoin > Bitcoin Covenants: CHECKTEMPLATEVERIFY (BIP 119)
Bitcoin

Bitcoin Covenants: CHECKTEMPLATEVERIFY (BIP 119)

March 29, 2025 12 Min Read
Share
Bitcoin Covenants: CHECKTEMPLATEVERIFY (BIP 119)

Table of Contents

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

Bitcoin Journal

Bitcoin Covenants: CHECKTEMPLATEVERIFY (BIP 119)

The is the primary article deep diving into particular person covenant proposals which have reached some extent of maturity meriting an in depth breakdown.

CHECKTEMPLATEVERIFY (CTV), put ahead by Jeremy Rubin with BIP 119, is essentially the most mature and totally fleshed out covenant proposal, not solely out of the proposals we shall be protecting, however out of all the covenant proposals of their entirety. As I discussed within the introduction article to this collection, there are numerous issues within the ecosystem concerning covenants which can be too versatile enabling issues that wind up having very detrimental penalties for Bitcoin.

CTV was designed particularly to constrain its capabilities tightly sufficient to keep away from any of these issues. To first perceive how CTV features, we have to perceive the person components of a Bitcoin transaction.

This can be a very excessive stage view of a Bitcoin transaction. It has inputs, or unspent cash (UTXOs), and outputs, the brand new unspent cash that the transaction will create when it’s confirmed in a block. There are much more items we are going to undergo, however that is the very best stage view of a transaction’s construction.

Each transaction additionally has a model quantity discipline for the entire transaction, indicating applicability of latest variations of guidelines or options. There’s additionally the marker and the flag, that are set to particular values to point the transaction makes use of Segwit. After that is the enter depend, the variety of inputs within the transaction. Then come the precise inputs.

Every enter accommodates a TXID of the transaction that created the unspent coin being spent, a VOUT which marks what output in that transaction is being spent, the scale of the ScriptSig, and the ScriptSig, which is the unlocking script proving the enter being spent is permitted by its locking script guidelines, and eventually a Sequence quantity which is used to make sure the enter being spent is following relative timelock guidelines. i.e. the enter has existed for a sure variety of blocks or size of time since its creation.

The output depend is the subsequent piece of knowledge, the variety of outputs within the transaction. After this comes the precise outputs, which include an quantity of satoshis assigned to that output, the ScriptPubKey dimension, and the precise ScriptPubKey, which is the locking script for that output. Lastly the nLocktime discipline applies a timelock worth in timestamp or block peak that applies to your entire transaction.

Every Segwit transaction additionally accommodates a Witness part, the place every enter has a corresponding witness containing a Stack Objects depend, what number of issues shall be placed on the script stack, a Measurement discipline for every merchandise, and the precise knowledge Merchandise to go on the stack.

How CTV Works

CTV is an opcode that permits essentially the most primary type of introspection and ahead knowledge finishing up of all of the covenant proposals. It permits a script to take a pre-defined 32 byte hash and examine that in opposition to a hash of a lot of the fields of the spending transaction. If the hash derived from the precise spending transaction doesn’t match the pre-defined hash, the transaction is invalid.

The fields it commits to are:

  • nVersion
  • nLocktime
  • Enter depend
  • A hash of all of the nSequence fields
  • Output depend
  • A hash of all of the outputs
  • Enter index (the place the enter has within the transaction, 1st enter, 2nd, and so forth.)

These are all of the fields dedicated to by the CTV hash, of their entirety, and with no potential to select and select. That is the diploma of introspection CTV allows, “does the hash of those fields within the spending transaction match the hash within the locking script of the enter being spent,” that’s it. The hash commits to primarily your entire transaction besides the precise inputs. There’s a motive the hash doesn’t embrace the inputs. With a purpose to lock an output to a 32 byte hash with CTV, it’s good to know the hash of the transaction that you’re making certain is the one method for it to be spent. The enter locked with CTV being spent must embrace this hash with a purpose to be verified in opposition to CTV. That necessitates having the hash of that transaction earlier than you create the whole transaction. That’s not potential.

You too can nest CTV scripts, i.e. have an preliminary CTV script decide to a transaction with outputs that additionally embrace CTV scripts. That is what permits CTV to “carry ahead” knowledge. All it carries ahead in observe although is no matter knowledge is contained within the chain of transactions. You are able to do this in concept to an infinite depth, however you’re restricted in observe to a finite depth as a result of the nesting should be generated backwards ranging from the tip. It is because every stage, or “hop,” should have the hash of the transaction transferring to the subsequent one, in any other case you’ll be able to’t create the locking script within the first place. For those who don’t already know the subsequent transaction, you’ll be able to’t generate the earlier one.

What Is CTV Helpful For

CTV lets you limit an output in order that it could possibly solely be spent, in response to consensus guidelines, by a precise pre-defined transaction. A few of you could be asking what the large deal is, we will already pre-sign transactions. If the extent of introspection is so restricted that it could possibly solely accomplish one thing we will already just do pre-signing, what’s the worth add?

First, pre-signed transactions all the time depart open the potential of the keyholder(s) signing new transactions and spending these cash otherwise. It’s important to belief that the keyholder is not going to do that, or will delete the important thing wanted to signal with (which you additionally must belief them on). CTV removes that belief fully. As soon as the spending transaction is outlined and the output locked to that CTV hash is created, there isn’t a risk of being spent one other method, enforced by consensus.

At the moment the one method round that belief is to be concerned in pre-signing transactions your self utilizing multisig. You then will be utterly sure that except you select to signal one your self, no different legitimate transaction spending a coin otherwise will be created. The issue is the extra individuals are concerned, the tougher and unreliable coordinating everybody to pre-sign a transaction on the similar time turns into. Previous small sizes it turns into a very impractical drawback to resolve reliably.

CTV offers a method for folks to know a set of transactions is dedicated with out everybody having to get on-line on the similar time to signal them. It vastly simplifies the coordination course of by permitting everybody to get the wanted data to anybody else every time they will, and as soon as that particular person has everybody’s data they will create the chain of CTV transactions with out anybody else’s involvement, and everybody can confirm and make certain that the right consequence is the one potential one.

That’s extremely invaluable by itself, however CTV may allow much more invaluable issues together with different opcodes, which we’ll see within the subsequent article.

Closing Ideas

CTV is a tightly restricted covenant that permits a level of introspection and ahead knowledge carrying that’s so restricted it doesn’t exceed the precise performance of something that may be carried out with pre-signed transactions. The worth proposition will not be in enabling new performance in its personal proper, however drastically enhancing the effectivity, scalability, and safety ensures of what will be constructed at the moment utilizing pre-signed transactions. This alone is an enormous profit to nearly each at the moment deployed protocol utilizing pre-signed transactions.

Listed below are a few of the tasks demonstrating how totally fleshed out and explored this explicit covenant is in comparison with the others:

  • A primary fee pool instance by stutxo.
  • A CTV vault implementation by James O’Beirne, who went on to suggest OP_VAULT (which nonetheless makes use of CTV).
  • A proof-of-concept port of the pre-signed transaction based mostly Ark implementation from Second by Steven Roose to make use of CTV as an alternative.
  • The Sapio Language by Jeremy Rubin himself, the next stage language for constructing contracts with CTV (additionally supporting using pre-signed transactions as an alternative).
  • Timeout Timber, a proposal for a really primary coinpool design by John Regulation.
  • Quite a few different potential protocols, similar to optimized Discreet Log Contracts (DLCs), non-interactive Lightning channels one social gathering may open with out the opposite, and even decentralized methods for miners to pool collectively.

CTV is an extremely mature proposal at this level, with a excessive worth add, and no threat of enabling something driving the issues round covenants. This could not solely be very critically thought of, however in my private opinion ought to have been activated years in the past.

This submit Bitcoin Covenants: CHECKTEMPLATEVERIFY (BIP 119) first appeared on Bitcoin Journal and is written by Shinobi.

You Might Also Like

Bitcoin Market Dominated by Fear as Price Reverses to Drop 2.5%

Bitcoin Stuns Gold In War Rally—Safe Haven Crown Up For Grabs

El Salvador Stays Bullish, Adds 5 Bitcoin To Its Growing Reserve

MicroStrategy CEO Michael Saylor graces the cover of Forbes: “The Bitcoin Alchemist”

Franklin Templeton predicts rising sovereign, institutional adoption for Bitcoin in 2025

TAGGED:BitcoinBitcoin News
Share This Article
Facebook Twitter Copy Link
Leave a comment Leave a comment

Leave a Reply Cancel reply

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

Popular News

image
Bitcoin Derivatives Flash Caution as BTC Climbs Higher, Options, Futures, and Max Pain Decoded
AvaCloud Ushers in New Era of Blockchain Privacy with Acquisition of EtraPay and Launch of Privacy Suite
AvaCloud Ushers in New Era of Blockchain Privacy with Acquisition of EtraPay and Launch of Privacy Suite
TRON's Justin Sun Debunks Binance Listing Rumors
TRON’s Justin Sun Debunks Binance Listing Rumors
Universal Health Token Debuts ‘PILLARS OF HEALTH’ NFT Collection
Universal Health Token Debuts ‘PILLARS OF HEALTH’ NFT Collection
Paragon Launches Flagship Loot-Box NFTs, Sell Out in Seconds
Paragon Launches Flagship Loot-Box NFTs, Sell Out in Seconds
Are NFTs Making a Return to Auction Houses?
Are NFTs Making a Return to Auction Houses?

You Might Also Like

image
Bitcoin

Bitcoin (BTC) Price Prediction for August 20

August 22, 2025
Bitcoin adoption is outpacing the internet and mobile phones – BlackRock
Bitcoin

Bitcoin adoption is outpacing the internet and mobile phones – BlackRock

January 14, 2025
Bitcoin, Ethereum lead $1.9 billion crypto inflows as investors look beyond Middle East tensions
Bitcoin

Bitcoin, Ethereum lead $1.9 billion crypto inflows as investors look beyond Middle East tensions

June 16, 2025
image
Bitcoin

Michael Saylor’s Strategy Buys Another 1,955 BTC for $217M

September 10, 2025
yourcryptonewstoday yourcryptonewstoday
yourcryptonewstoday yourcryptonewstoday

"In the fast-paced world of digital finance, staying informed is essential, and we’re here to help you navigate the evolving landscape of crypto currencies, blockchain, & digital assets."

Editor Choice

Alarmists warn the Bitcoin blockchain will soon become home to child pornography. Learn when
Binance Announces Second Group of Altcoins for “Which Altcoin Should Be Listed?” Vote! 12 Altcoins Determined! There Are Surprise Names!
Crypto Wallet Xaman Announces Temporary Outage Halting XRP Transactions

Subscribe

* indicates required
/* real people should not fill this in and expect good things - do not remove this or risk form bot signups */

Intuit Mailchimp

Follow Us on Socials

We use social media to react to breaking news, update supporters and share information

Twitter Linkedin Facebook
  • About Us
  • Contact Us
  • Disclaimer
  • Terms of Service
  • Privacy Policy
Reading: Bitcoin Covenants: CHECKTEMPLATEVERIFY (BIP 119)
Share
Follow US
© 2025 All Rights reserved | Protected by Your Crypto News Today
Welcome Back!

Sign in to your account

Lost your password?