Witness Discount Explained

Witness Discount Explained

cryptoslate.com
February 22, 2025 by Jhon E. Bermúdez
19
Ever heard of a “witness discount” in the world of Bitcoin? It might sound a bit technical, but it’s actually a pretty cool concept! Basically, it’s all about making Bitcoin transactions lighter by giving a break to the “witness” part of the transaction. Think of the witness as the digital signature that proves you own
witness

Ever heard of a “witness discount” in the world of Bitcoin? It might sound a bit technical, but it’s actually a pretty cool concept! Basically, it’s all about making Bitcoin transactions lighter by giving a break to the “witness” part of the transaction. Think of the witness as the digital signature that proves you own the bitcoins you’re sending. Back in 2017, a clever upgrade called Segregated Witness (SegWit) came along, and this discount was a key feature. It made transaction fees cheaper for people using SegWit because this witness data started to count for less when figuring out how big a transaction was.

Let’s break it down even simpler. Imagine the digital signature, the witness data, gets a whopping 75% off! This means, for the purpose of calculating transaction size in a Bitcoin block, it only counts as one-quarter of its actual size. This clever trick allows more transactions to squeeze into each block, which is like making the Bitcoin highway less congested. And for you and me, using wallets that are SegWit-ready, it means cheaper transaction costs. Win-win!

Now, you might be wondering, “Why bother with this Witness Discount in the first place?” What’s the big idea behind giving this special treatment to the witness data? Well, it all boils down to a long-standing challenge Bitcoin has faced: scalability—handling more and more transactions. The Witness Discount was a smart way to boost transaction capacity without needing to overhaul the entire Bitcoin system with a risky and complicated “hard fork.” In this article, we’re going to dive into the purpose of the witness discount, see exactly how it works, and understand why it’s still important in the Bitcoin world today.

Key Takeaways

  • Witness Discount: Think of it as a price cut! It reduces the “size” of the signature part of your Bitcoin transaction, leading to lower fees.
  • Part of SegWit: This discount is a key element of the Segregated Witness (SegWit) upgrade. SegWit not only brought us the witness discount but also solved a tricky problem called transaction malleability and effectively expanded the size of Bitcoin blocks.
  • Scalability: The witness discount is all about efficiency. It makes Bitcoin transactions more streamlined, allowing more of them to fit into each block and keep things running smoothly.

Purpose of the Witness Discount

The witness discount came into being as part of SegWit, a significant upgrade to how Bitcoin works. SegWit essentially reorganized transaction data into two main parts. First, you have the core transaction details, and then separately, you have the “witness” data – primarily the digital signatures. The clever part? The witness data got a “discount” in terms of how much it contributes to the overall size of a Bitcoin block.

BeforecSegWit was introduced, Bitcoin blocks had a strict size limit of 1MB. SegWit cleverly got around this limitation by indirectly increasing the block size. It did this by giving witness data a lower “weight.” This meant more transactions could be packed into each block without technically going over the 1MB limit that older, non-SegWit parts of the network still recognized.

So, the witness discount achieves a really important goal: it lets more transactions fit into each block while still playing nice with older parts of the Bitcoin network that haven’t upgraded to SegWit. It’s all about improving efficiency and keeping things compatible.

How It Works

Let’s think about what happens when you make a Bitcoin transaction. The essential details, like how much Bitcoin you’re sending and the addresses involved, get recorded. But there’s also this crucial “witness” component. This is where the digital signatures live—the proof that you actually own the Bitcoin you’re sending.

  • Pre-SegWit: Back in the day, before SegWit, every part of a transaction was treated equally when figuring out how much space it took up in a block. No discounts, no special treatment.
  • Post-SegWit: After SegWit came into play, things changed. The witness data, those digital signatures, started being stored separately from the main transaction info. This separation is key because it allows more transactions to fit in a block. How? Because the witness data is now considered “lighter,” effectively getting a 75% discount. Imagine a full transaction that used to take up 300 bytes. With SegWit, it now contributes a smaller chunk to the block’s total “weight,” making things more efficient.

This whole system is great for users with SegWit-enabled wallets because transaction fees are based on this “virtual size” of the transaction. Since the witness data gets a discount, your transactions can be cheaper!

History and Rationale

The story of the witness discount actually goes back to some heated debates in the Bitcoin community from 2015 to 2017—often called the “block size wars.” At the time, everyone was trying to figure out the best way to help Bitcoin handle more transactions and grow. One obvious solution was to just make the blocks bigger. More space, more transactions, right? But simply increasing the block size (through what’s called a “hard fork”) was a really controversial idea. People worried it could make Bitcoin more centralized, as larger blocks are tougher for nodes with less powerful internet and computers to handle.

Enter SegWit, a proposal from Bitcoin developer Pieter Wuille. It was pitched as a smart compromise. SegWit tackled the scaling problem by creating more usable space within blocks, but without needing that risky hard fork. And that’s where the witness discount comes in as a crucial part of SegWit. By giving witness data a discount, SegWit effectively expanded the number of transactions that could fit into a block, all while keeping things compatible with older parts of the Bitcoin network.

To put it simply, SegWit allowed Bitcoin to have its cake and eat it too: more transactions per block without the potential downsides of messing with the fundamental structure of the network.


Pros and Cons

Pros:

  1. Increased Block Efficiency: The witness discount is like a space-saving trick. It allows more transactions to fit into each block, which is like indirectly making Bitcoin blocks bigger, but in a way that still works with older, non-updated parts of the network.
  2. Lower Fees for SegWit Users: Because witness data weighs less, SegWit transactions tend to be smaller overall. And smaller size often means lower transaction fees for users—always a good thing!
  3. Enhanced Security: SegWit didn’t just give us discounts; it also fixed a security issue called “transaction malleability.” This makes Bitcoin transactions more secure, which is super important for things like the Lightning Network, which builds on top of Bitcoin.
  4. Improved Scalability: By making each transaction less data-heavy, the witness discount helps Bitcoin handle more transactions overall, improving the network’s ability to scale and grow.

Cons:

  1. Complexity: Let’s be honest, SegWit, including the witness discount, does make Bitcoin a bit more complex under the hood. Some purists in the Bitcoin community feel this added complexity wasn’t really needed.
  2. Not Fully Adopted: While the witness discount was meant to encourage people to use SegWit, adoption hasn’t been universal. Many wallets and exchanges have been a bit slow to fully implement it, meaning not everyone is experiencing the benefits just yet.

Witness Discount vs. Block Size Increase

One of the big debates during Bitcoin’s scaling discussions was whether to simply increase the block size directly or to go with a more nuanced solution like SegWit, which indirectly makes blocks more efficient. So, how does the witness discount approach compare to just making blocks bigger?

Block Size Increase:

  • It directly allows for more transactions in each block, simple as that.
  • But, it also puts more strain on nodes. Nodes need more storage space and faster internet to keep up with these bigger blocks.
  • And increasing block size directly usually requires a “hard fork,” which can potentially split the Bitcoin network, as we saw with Bitcoin Cash.

Witness Discount (SegWit):

  • It achieves a similar outcome—more transaction capacity—but without needing a hard fork, which is a smoother upgrade.
  • It directly benefits users who use SegWit by lowering their transaction costs.
  • It’s also considered more sustainable for the long run because it doesn’t pile on extra burdens on nodes. It’s more about working smarter, not just harder (or bigger).

Basically, the witness discount is a way to get the benefits of bigger blocks—more transactions—without risking the decentralization of Bitcoin, which is a core principle of how Bitcoin is designed to work.


Frequently Asked Questions (FAQs)

Why is the witness discount set at 75%?

The reason behind the 75% witness discount is actually pretty logical! The witness data, which mainly consists of those digital signatures, is not something that needs to be stored forever by Bitcoin nodes like other transaction data. It’s primarily needed to verify the transaction and then, for many purposes, it can be discarded. Since it has less of a long-term impact on node resources compared to the core transaction data, it gets this special discount.

After the SegWit upgrade, instead of just measuring transaction size in bytes, Bitcoin started using “weight units” (WU). Non-witness data got assigned a weight of 4 WU per byte, while witness data got just 1 WU per byte—a 1:4 ratio. This effectively means witness data is counted as only 25% of its actual size, giving us that 75% discount we’ve been talking about.

Choosing this 1:4 weighting was a carefully thought-out decision. It’s a balance between making SegWit attractive to use, keeping the network efficient, and ensuring strong security. It allows more transactions per block while still working smoothly with pre-SegWit rules, ultimately boosting Bitcoin’s ability to scale up without sacrificing its fundamental decentralization.

Does the witness discount mean SegWit blocks can actually be bigger than before?

Yes, you got it! In reality, SegWit blocks can indeed be larger than the old 1MB block limit. However, the way block “weight” is calculated now means that SegWit blocks are more data-efficient. They can hold more transactions that “weigh” less in the overall block calculation.

What if I don’t use SegWit? What does that mean for me?

If you’re using non-SegWit transactions, you won’t get the benefit of the witness discount. This means your transactions will take up more space in a block and usually end up costing you higher fees. However, don’t worry, they are still completely valid and will be processed by the Bitcoin network just like any other transaction.

Is the witness discount here to stay? Is it a permanent feature?

As it stands today, there are no plans to get rid of the witness discount. It’s considered a really important part of Bitcoin’s strategy to handle growth and is generally seen as a success. It’s helped improve the network’s efficiency without compromising the key principles of decentralization and security that make Bitcoin so unique.

Source: bitcoinmagazine.com