Bitcoin’s Segregated Witness: More Than Just Malleability Fixes and Scaling

- blockchain

If you’re in the Bitcoin community, you probably know of Segregated Witness as (1) a fix to transaction malleability (2) a boost to the number of transactions that can be included in each block.

If you’re not in the Bitcoin community, you probably have no idea what I’m talking about and this article probably isn’t for you. Sorry :/

Anyway, “Segregated Witness” or “SegWit” is a Swiss Army knife in terms of benefits. It leads to improvements on so many levels it’s actually surprising. It’s really, really good. So good that it’s worth listing out all of the benefits.

Here’s why SegWit is awesome:

  1. It fixes the substantial transaction malleability problem once and for all, enabling second-layer scaling solutions like Lightning.
  2. It 1.7x’s the # of single-signature transactions per block and up to 3.7x’s the # of multi-signature transactions per block.
  3. It improves the efficiency of signature-hashing so it scales linearly rather than quadratically.
  4. It makes it safer for hardware wallets to sign transactions by explicitly hashing and signing input values.
  5. It upgrades pay-to-script-hash transactions from 160-bit hashes to 256-bit hashes.
  6. It introduces versioning for the scripting language to allow for easier upgradeability.
  7. It reduces the growth of the system’s most burdensome resource: unspent transaction outputs, which are ideally kept in memory.
  8. It allows for bandwidth and disk space reductions for lightweight nodes by allowing them to ignore historical signatures.

Note to the reader: the original version of this article was posted on Medium here.