SegWit
SegWit (Segregated Witness) is a Bitcoin upgrade that moves transaction signatures to a separate data structure, increasing block capacity and enabling efficient scaling solutions like the Lightning Network.
What Is SegWit?
SegWit (Segregated Witness) is a Bitcoin upgrade activated in August 2017 as a soft fork. It moves signatures and other unlocking data, the witness, out of the part of a transaction that is hashed into the transaction ID.
This fixed transaction malleability: before SegWit a third party could alter the encoding of a signature and so change the ID of an unconfirmed transaction. A stable ID is what makes payment channels, and with them the Lightning Network, practical.
SegWit also replaced the 1 MB block size limit with a limit of 4 million weight units, in which witness bytes count a quarter as much as other bytes. Blocks can hold more transactions, and SegWit spends pay lower fees than equivalent legacy ones.
In a wallet, SegWit shows up as an address type. Native SegWit addresses start with bc1q; wrapped SegWit addresses start with 3 and exist for compatibility with old software; legacy addresses start with 1. Taproot (bc1p) is SegWit version 1. Current hardware wallets support native SegWit. Each type uses its own derivation path, so a wallet restored with the wrong type selected shows an empty balance until the right one is added.
Real-World Examples
Example 1: A user exports the native SegWit (BIP84) account key from a Coinkite Coldcard Mk5 to Sparrow. The receive addresses start with bc1q, and each spend costs less than it would from a legacy address.
Example 2: After restoring from the recovery phrase, a user sees a zero balance. The coins were on a wrapped SegWit account; adding that account type in the companion app brings them back into view.
Frequently Asked Questions
Why does my restored wallet show a zero balance when the coins were on SegWit addresses?
Each address type uses its own derivation path. If the wallet is restored with the wrong type selected, for example native SegWit while the coins sit on a wrapped SegWit account, it shows an empty balance. The coins are not lost: adding the right account type in the companion app brings them back into view.
What is the difference between Bitcoin addresses starting with bc1q, 3 and 1?
Addresses starting with bc1q are native SegWit; those starting with 3 are wrapped SegWit, kept for compatibility with old software; those starting with 1 are legacy. Taproot addresses start with bc1p and are SegWit version 1. SegWit spends pay lower fees than equivalent legacy ones.
Why was SegWit needed for the Lightning Network?
SegWit fixed transaction malleability. Before it, a third party could alter the encoding of a signature and so change the ID of an unconfirmed transaction. Moving the witness out of the data hashed into the transaction ID made IDs stable, and a stable ID is what makes payment channels, and with them the Lightning Network, practical.
Ready to Choose a Secure Wallet?
Use our tools to find the right hardware wallet for your needs.