cryptd.in

암호화폐 친화적인 인재를 위한 대체 링크드인

The Witness Discount

Bitcoin Magazine

The Witness Discount

그리고 witness discount refers to the reduction in data “weight” given to the witness portion of a Bitcoin transaction — the part that contains the signatures used to prove ownership. Implemented as part of the 2017 segregated witness (SegWit) upgrade, this discount effectively lowered the fees for SegWit transactions by making the witness data count for less when calculating the total size of a transaction.

In simpler terms, the witness data gets a 75% discount, meaning that it only counts as one-quarter of its actual size when determining how much space it takes up in a Bitcoin block. This allows for more transactions per block and reduces costs for users who adopt SegWit-enabled wallets.

But why does the Witness Discount exist in the first place? What’s the point of giving the witness data this special treatment? The answer ties back to Bitcoin’s long-standing scalability challenges, and the need to increase transaction capacity without overhauling the network with a risky hard fork. In this article, we explore the purpose behind the witness discount, how it works, and why it continues to matter today.

Key Takeaways

  • Witness Discount: A discount applied to the size of the “witness” (or signature) portion of a Bitcoin transaction, reducing fees.
  • Part of SegWit: Witness discount is part of segregated witness (SegWit), which solved the long-standing transaction malleability issue and effectively increased Bitcoin’s block size.
  • Scalability: It helps make Bitcoin transactions more efficient, allowing for more transactions per block.

Purpose of the Witness Discount

The witness discount was introduced as part of SegWit, a major upgrade to the Bitcoin protocol that separated the transaction data into two parts: the core transaction data and the witness data (mostly digital signatures). In essence, the witness data was given a “discount” in terms of how much it counts toward the overall block size.

Prior to SegWit, Bitcoin’s block size was capped at 1MB. SegWit brought an indirect block size increase by applying a lower “weight” to the witness data — thus enabling more transactions per block without exceeding the 1MB limit for non-SegWit nodes.

The witness discount accomplishes a crucial goal: It allows for more transactions to fit into a block while maintaining compatibility with older nodes that haven’t upgraded to SegWit.

How It Works

When a Bitcoin transaction occurs, the core elements of that transaction — such as the amount of bitcoin being sent and the addresses involved — are recorded. However, there’s another component called the “witness,” which stores the signatures that prove ownership of the transferred bitcoin.

  • Pre-SegWit: Before SegWit, all parts of a transaction were treated equally in terms of how much space they consumed in a block.
  • Post-SegWit: After SegWit, the witness data (signatures) was stored separately from the rest of the transaction data. This separation allows for more transactions to fit into a block, as the witness data is assigned a lower weight, effectively giving it a 75% discount. A full transaction under SegWit, which could previously take up, say, 300 bytes, now only contributes a smaller amount of that size to the block’s total weight.

This reduces fees for users who opt for SegWit-enabled wallets since fees are calculated based on the virtual size of the transaction, which now discounts the witness data.

History and Rationale

The story behind the witness discount dates back to the block size wars in 2015-2017. At that time, the Bitcoin community was embroiled in heated debates about how to scale the network. Larger block sizes would allow for more transactions per block, but increasing the block size directly (via a hard fork) was controversial. It risked centralizing the network, as bigger blocks are harder to propagate and store for nodes with less bandwidth and storage.

SegWit, proposed by Pieter Wuille, was introduced as a compromise. It addressed the scaling issue by creating more “effective” block space without requiring a hard fork. This is where the witness discount became important. By discounting the witness data, SegWit effectively expanded the number of transactions that could fit into a block while maintaining backward compatibility.

In simpler terms, SegWit allowed Bitcoin to have its cake and eat it too: more transactions per block without the risk of destabilizing the network.


Pros and Cons

Pros:

  1. Increased Block Efficiency: The witness discount allows for more transactions per block, indirectly increasing Bitcoin’s block size while keeping it backward-compatible with non-upgraded nodes.
  2. Lower Fees for SegWit Users: Since witness data is given less weight, SegWit transactions tend to be smaller in size, meaning lower transaction fees for users.
  3. Enhanced Security: SegWit solved the transaction malleability problem, making Bitcoin transactions more secure, which is especially important for second-layer solutions like the Lightning Network.
  4. Improved Scalability: By reducing the data burden on each transaction, the witness discount improves the scalability of the Bitcoin network.

Cons:

  1. Complexity: The SegWit implementation, including the witness discount, adds layers of complexity to the protocol, which some purists in the community view as unnecessary.
  2. Not Fully Adopted: While the witness discount encouraged the use of SegWit, many wallets and exchanges have been slow to adopt it, meaning its benefits aren’t universally experienced.

Witness Discount vs. Block Size Increase

One of the major debates in the Bitcoin scaling saga was whether to increase the block size directly or to implement a solution like SegWit, which indirectly increased the block size. So, how does the witness discount compare to simply raising the block size?

Block Size Increase:

  • Direct increase in the number of transactions a block can hold.
  • Increases the burden on nodes, requiring more storage and bandwidth to keep up with the network.
  • Requires a hard fork, which can split the network (as seen in the case of Bitcoin Cash).

Witness Discount (SegWit):

  • Achieves a similar result (increased transaction capacity) without a hard fork.
  • Reduces transaction costs for users taking advantage of SegWit.
  • Doesn’t impose additional burdens on nodes, making it more sustainable long-term.

Essentially, the witness discount achieves the goal of more transactions per block without compromising Bitcoin’s decentralization, a key tenet of the network’s design philosophy.


Frequently Asked Questions (FAQs)

Why is the witness discount 75%?

The 75% witness discount exists because witness data—which includes digital signatures—does not contribute to the long-term size of the UTXO set that nodes must store permanently. Since this data is only needed for transaction validation and can be discarded afterward, it has a lower impact on node resources compared to non-witness data.

With the SegWit upgrade, transaction size is measured in weight units (WU) rather than bytes. Non-witness data is assigned a weight of 4 WU per byte, while witness data is assigned 1 WU per byte—a 1:4 ratio. This means witness data is effectively counted as 25% of its original size, resulting in a 75% discount.

The choice of 1:4 weighting was a deliberate balance between incentivizing SegWit adoption, preserving network efficiency, and maintaining security. It allows more transactions per block while ensuring compatibility with pre-SegWit rules, enhancing Bitcoin’s scalability without sacrificing decentralization.

Does the witness discount mean SegWit blocks are bigger? 

Yes, in practice, SegWit blocks can be larger than the pre-SegWit 1MB block limit. However, the way the block weight is calculated means that SegWit blocks are more efficient in storing data, so more transactions — that don’t count for as much weight as before — can fit into a block.

What happens if I don’t use SegWit? 

Non-SegWit transactions don’t benefit from the witness discount, meaning they take up more space in a block and typically incur higher fees. However, they are still fully valid and can be processed by the network.

Is the witness discount here to stay? 

As of now, there are no plans to remove the witness discount. It remains a critical part of Bitcoin’s scalability strategy and is widely considered a success in improving the network’s efficiency without compromising decentralization or security.

This post The Witness Discount first appeared on Bitcoin Magazine and is written by Conor.


댓글

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다

최신 피드

인기 카테고리

웹사이트 검색

인기 스토리

태그

#AlexeyPertsev (1) #BidenCryptoBan (1) #BidenElection (1) #BinanceVsCoinbase (1) #B비트코인 (458) #BitcoinETF (3) #B비트코인기초 (1) #B비트코인 취급 (1) #B비트코인가격 (5) #B비트코인가격수준 (1) #B비트코인펌프 (1) #B비트코인예치 (1) #B비트코인서지 (1) #BitcoinTop (1) #Bitfinex (1) #B비트 단위 (1) #브레이스브리지캐피털 (1) #BRC20토큰 (1) #BTC취득 (1) #B울리스틱 예측 (1) #BullishSentiment (1) #C중국광업 (1) #CPIP리뷰 (1) #CryptoAsset (2) #CryptoBattle (1) #CryptoBoom (1) #CryptoExpert (1) #CryptoInsights (1) #CryptoMania (1) #CryptoMarket (4) #CryptoPrediction (1) #CryptoPredictions (1) #CryptoRegulation (2) #CryptoTakeoff (1) #CryptoTiming (1) #CryptoTips (1) #CryptoTreasury (1) #CryptoUncertainty (1) #DerivativeJump (1) #Dogecoin (74) #DogecoinGains (1) #DogecoinVolume (1) #DutchCourt (2) #ECommerce (1) 1TP5테엘살바도르비트코인 (1) 1TP5테더리움 (74) 1TP5테더리움통증 (1) 1TP5테더리움가격 (1) 1TP5전문가 의견 (1) #FedRateCut (1) #FiatCurrency (1) #FinancialImpact (1) #FinancialPrivacy (1) #FirmShutdown (1) #FrozenAccounts (1) #IllicitFunds (1) #인플레이션데이터 (1) #투자 (1) #투자손실 (1) #일본기업 (1) #LegalAction (1) #LegalImpact (1) #법률 (1) #라이트닝 네트워크 (1) 1TP5시장분석 (3) 1TP5시장 모니터링 (1) 1TP5시장 예측 (1) 1TP5시장 예측 (1) #MarketProjection (1) 1TP5마켓지원 (1) 1TP5시장변동성 (1) #M결혼 (1) #MemeCoin (5) #MemeCoins (2) #M광부수익성 (1) #MoneyLaundering (2) #MtGox (4) 1TP5북한암호화 (1) 1TP5노보그라츠예측 (1) #P가격 마일스톤 (1) #P가격 예측 (2) #P가격 질문 (1) #PriceSurge (1) #P형량 (1) #QuantAnalysis (1) 1TP5규제압력 (1) #SEC안티크립토 (1) #ShibaInu (6) #SocialBuzz (1) 1TP5기술분석 (1) #Toncoin (3) #TornadoCash (3) #TornadoCashDev (1) 1TP5토네이도캐시개발자 (1) #UKCrypto (1) #업사이드 잠재력 (1) #USCongress (1) #와이오밍랜드 (1) #XRP가격 (1) #XRP업스윙 (1)

유용한 링크

유용하다고 생각되어 공유하고 싶은 링크.