Proof of work is a consensus protocol used by bitcoin and many other cryptos to validate the transactions that occur in their networks. While we’ll be reading about this breakthrough for years to come, the truth is that the technologies that Satoshi combined to create a blockchain-based currency already existed.
A blockchain is a decentralised, trusted ledger of transactions which occur within a network, and are validated by a network of separately-owned computers using a cryptographic protocol to assess the accuracy of the data contained on the ledger.
The real innovation behind Bitcoin lies in the integration of three separate technologies: a decentralised ledger, cryptographic keys, and a protocol known as proof of work. In this article, we’ll look what proof of work is, how does it work and does it achieve.
Proof of work is a consensus protocol
In simple terms, proof of work is used to validate the transactions that occur in their networks. This process is known as mining, a term which you will undoubtedly recognise.
Many separately-owned nodes make up a blockchain network and compete among them to make sure that the information contained in each block of transactions is accurate. For these efforts, they receive a reward.
If I pay you £10/$10 for a product, you recognise the value of that currency, and you trust it because it’s backed by the UK’s central bank or the US Federal Reserve. These institutions act as guarantors of the value of the currencies they print.
The proof of work protocol does the same for cryptocurrencies. It ensures the data contained in the blockchain is trustworthy by giving the network nodes an incentive to validate accurate data and reject false information.
All of this happens in spite of the fact there is no central institution backing it. When used in the context of a blockchain, it allows for trust between unknown parties who don’t trust each other but share a confidence in the veracity of the consensus protocol.
How does the process work?
If I send you one Bitcoin, that transaction is registered on a block with other transactions with a timestamp and communicated to the decentralised network where different machines, or miners, employ their computing power to validate it (along with the rest of the block).
The network nodes validate the information by competing among themselves to find the solution to increasingly more complex mathematical riddles. They present solutions on a trial and error basis until one finds the correct number and communicates it to the remaining machines. When a majority of nodes agree that one miner has solved the problem, a consensus is achieved.
For this work, the miner receives a reward in the form of transaction fees and the block of transactions is added to the decentralised, shared ledger where it becomes an immutable part of the blockchain.
When these different nodes compete until they reach a solution on which the whole network agrees, they use up a lot of computational power, energy and time. As the problems increase in complexity so do these costs, which provides a further incentive not to cheat the system. Why would you go through all the effort and cost of investing in powerful computers to then miss out on the rewards?
The protocol that allows for this validation is brilliant in its inception because it relies on human self-interest to guarantee the integrity of the blockchain. Proof of work exists so that transactions can’t be falsified.
Why does proof of work matter?
In short, proof of work is essential because it allows for trust in a trustless environment. The capability to generate blocks of transactions is a display of computational power that blockchains need to validate the information they contain.
When miners agree to compete for the reward for getting the next block right, they implicitly also agree to abide by the rules of that community of nodes, instead of rather manipulating the blockchain for their own nefarious purposes.
By increasing the difficulty of verifying each block, proof of work ensures excessive mining doesn’t take place, which preserves the supply of that cryptocurrency while incentivising miners to keep the network running.
Since it uses limited resources like time, computational strength and energy, proof-of-work isn’t infinitely scalable which raises some issues. As an example, it’s estimated that the electricity used in validating one Bitcoin transaction could power the average Dutch household for two weeks.
An alternative to tackle the resource inefficiencies inherent to this protocol is the proof-of-stake consensus mechanism. In proof of stake, the network values seniority and investment in the cryptocurrency over computational power. Since every time a new block is created the miner has to trade in old units of that crypto for new ones, that miner will be in a weaker position to create the next block.
This ensures a continual turnover in who gets to mine each block while also incentivising the trustworthiness of that crypto by making the largest holders an integral part of the process.