Segregated Witness (SegWit) Upgrade
Bitcoin transactions were originally comprised of two primary data elements: outputs and inputs.
Outputs create new coins and set the conditions that must be met to spend those coins, such as specifying a public key that must sign the spending transaction.
Inputs reference previous outputs and provide data satisfying their spending requirements, like a signature matching the specified public key.
To prevent coins from being created out of thin air, the total value of all inputs must be greater than or equal to the total value of all outputs.
However, in 2017, the Segregated Witness (SegWit) protocol upgrade introduced a third data element, the "witness."
SegWit restructured Bitcoin transactions by separating them into two distinct components: the transaction data (input and output) and the witness data.
This change introduced the concept of block weight, which altered the way block size is measured.
Under this system, the weight of the witness data is only 25% of the weight of the transaction data. This means Bitcoin's effective block size increased thanks to SegWit, making it more efficient and cost-effective to store data in the witness portion of the transaction.
In essence, SegWit allowed Bitcoin's maximum block size to grow from 1MB to 4MB, comprising 1MB of transaction data and 3MB of witness data. This improvement enabled more transactions to be processed within each block, enhancing Bitcoin's overall scalability and transaction throughput.
Last updated