Live · Sat, Oct 10, 2026 · 17:01 UTC Block 843,917 Fees 14 sat/vB Fear & Greed 72 · Greed
Newsletter Pro Terminal Sign in
McLeod Pacific Investments.
Subscribe →
Live · 17:01 UTC Block 843,917 F&G 72
Bitcoin Basics Bitcoin Basics desk

What is a Bitcoin witness field and why does it matter?

The Bitcoin witness field is the part of a transaction that stores signature data separately from the main transaction body. Understanding it explains why modern addresses are cheaper to use and more flexible to build on.

Vibrant green numbers on a computer screen, showcasing binary code and data streams.

Photo by Tibe De Kort on Pexels

The Bitcoin witness field is a section of a transaction that holds cryptographic signature data, kept separate from the core transaction body. It was introduced as part of the Segregated Witness (SegWit) upgrade, which activated on the Bitcoin network in August 2017. If you've ever noticed that some Bitcoin addresses cost less to use than others, the witness field is a big part of the reason why.

What a transaction looked like before SegWit

Before SegWit, every Bitcoin transaction stored its signature data (the proof that the sender authorised the payment) inside the main transaction block. This created two problems. First, signatures took up a lot of space, and block space is limited. Second, the way signatures were stored made it theoretically possible for third parties to alter transaction identifiers before confirmation, a problem called transaction malleability.

Transaction malleability wasn't just theoretical. It was one of the issues cited in the 2014 collapse of the Mt. Gox exchange. When a transaction's ID could be changed without invalidating the payment, software that relied on those IDs for tracking could be fooled into thinking a transaction had failed when it hadn't.

How the witness field solves both problems

SegWit moved the signature data out of the main transaction body and into a separate structure: the witness field. The word "witness" here carries its legal meaning, referring to the evidence that attests a payment is valid.

Separating the witness field from the transaction data does two things at once. It fixes malleability, because the transaction ID is now calculated without including the signature data. And it effectively increases how much data can fit in each block, because witness data is counted differently under the new rules. Specifically, witness bytes carry a weight of 1 rather than 4 in the block weight calculation, meaning a block can accommodate more transactions without formally exceeding the 1 MB limit that older nodes still understand.

This is why sending Bitcoin from a SegWit address costs less in fees than sending from a legacy address. Less effective block weight means lower competition for space, which means a smaller fee to get included promptly.

What the witness field actually contains

For a standard pay-to-public-key-hash (P2PKH) transaction, the witness field is empty because that address format predates SegWit. For a pay-to-witness-public-key-hash (P2WPKH) transaction, the witness field contains two items:

  • The signature produced by the sender's private key.
  • The sender's public key, used to verify that signature.

For more complex transactions, the witness field can hold more items. A multisig transaction requires multiple signatures, so each of those signatures sits in the witness field alongside the redeem script that defines the spending conditions.

Taproot addresses, introduced in November 2021, use the witness field too, but with a different internal structure called the witness version. Taproot uses witness version 1, while standard SegWit uses witness version 0. The witness version number is a small tag that tells nodes how to interpret whatever else is in the field.

Why witness version matters for address types

The witness version is the clearest way to understand how Bitcoin address types relate to each other. Witness version 0 covers the two original SegWit address formats (P2WPKH for single-key payments and P2WSH for scripted payments). Witness version 1 covers Taproot (P2TR). Versions 2 through 16 are reserved for future upgrades.

When you look at a bech32 address (one starting with "bc1q"), the "q" encodes witness version 0. A bech32m address (starting with "bc1p") encodes witness version 1. The address format itself tells you which witness version applies and therefore what rules the network uses to validate that payment.

This is relevant for practical reasons. Not every wallet understands every witness version. Sending to a bech32m address from a wallet that only supports bech32 may fail or produce an error. Understanding the witness field helps you understand why that happens and how to avoid it.

The witness field and the Lightning Network

The witness field is not only relevant for on-chain transactions. It was a prerequisite for the Bitcoin Lightning Network. Lightning relies on payment channels, and payment channels rely on the ability to safely pre-sign transactions without those signatures being altered before broadcast. Transaction malleability would have broken this entirely.

By fixing malleability through the witness field separation, SegWit made the Lightning Network structurally viable. That connection matters for anyone thinking about where Bitcoin's payment layer is heading, because fast, low-cost Lightning payments depend on the same structural change that makes SegWit addresses cheaper to use today.

If you want to understand how the Bitcoin Lightning Network works in practice, the witness field is the foundation underneath it.

What beginners need to take away

You don't need to read raw transaction hex to benefit from understanding the witness field. Three practical points are enough.

First, using a SegWit or Taproot address costs less in fees than a legacy address because witness data is cheaper to include in a block. Second, the transaction ID you use to track a payment is now stable and won't change after broadcast, which makes tracking reliable. Third, more advanced features like multi-signature wallets and Lightning channels are all built on top of what the witness field makes possible.

Bitcoin's technical layers can look intimidating from the outside. But most of the complexity exists to solve real problems: lower fees, better security, and more flexible spending conditions. The witness field is a clean example of that: a structural change that improved the network in multiple ways at once.

→ The Confirmations · Daily newsletter

One email at 06:00 UTC. Six minutes. The only digest written for desks, not for retail.