Proof of Work
Mecanismo de consenso em que participantes gastam poder computacional para validar transações e criar blocos, protegendo a rede pelo custo de fraudá-la.
Key points
- Proof of work (PoW) is the consensus mechanism in which participants spend computational power to validate transactions and create blocks.
- Security comes from cost: rewriting history would require redoing all the computational work of the blocks, something unfeasible on large networks.
- It is Bitcoin's original mechanism and prioritizes security and simplicity, at the price of high energy consumption.
What is proof of work?
Proof of work is a method for a distributed network to agree on which version of the transaction history is valid, without relying on a central authority. Participants must demonstrate that they performed real computational effort, and it is this provable work that gives the mechanism its name and underpins trust in the network.
How it works
To add a block, validators compete to find the solution to a cryptographic problem that can only be found by trial and error. Finding the solution is hard, but verifying that it is correct is fast and cheap. This allows the entire network to confirm, without effort, that whoever added the block actually spent the required work.
The chain considered valid is the one that has accumulated the most work. To attempt fraud, an attacker would need to control most of the processing power and redo the work of several blocks faster than the rest of the network, which becomes prohibitively expensive as the network grows. This is the basis of the cost of a majority attack.
Difficulty adjusts over time to keep the pace of block creation stable, regardless of how much computational power enters or leaves the network.
Why it matters
Proof of work was the first practical solution for transferring digital value without an intermediary, and it still secures Bitcoin. For anyone assessing a network's security, the total computational power dedicated to it is a direct indicator of how difficult it would be to attack. The greater this aggregate power, the more expensive and unlikely an attack capable of reorganizing recent history becomes.
Limitations
The main cost is energy: sustaining the competition requires high electricity consumption, which raises environmental concerns and concentrates activity where energy is cheap. Processing capacity is also limited, which motivated the emergence of alternatives such as proof of stake. Even so, proponents argue that the energy cost itself is what gives the mechanism its robustness, proven over more than a decade.