Proof-of-work (PoW) | ethereum.org (2024)

Last edit: , October 24, 2023

The Ethereum network began by using a consensus mechanism that involved Proof-of-work (PoW). This allowed the nodes of the Ethereum network to agree on the state of all information recorded on the Ethereum blockchain and prevented certain kinds of economic attacks. However, Ethereum switched off proof-of-work in 2022 and started using proof-of-stake instead.

Proof-of-work has now been deprecated. Ethereum no longer uses proof-of-work as part of its consensus mechanism. Instead, it uses proof-of-stake. Read more on proof-of-stake and staking.

Prerequisites

To better understand this page, we recommend you first read up on transactions, blocks, and consensus mechanisms.

What is Proof-of-work (PoW)?

Nakamoto consensus, which utilizes proof-of-work, is the mechanism that once allowed the decentralized Ethereum network to come to consensus (i.e. all nodes agree) on things like account balances and the order of transactions. This prevented users from "double spending" their coins and ensured that the Ethereum chain was tremendously difficult to attack or manipulate. These security properties now come from proof-of-stake instead using the consensus mechanism known as Gasper.

Proof-of-work and mining

Proof-of-work is the underlying algorithm that sets the difficulty and rules for the work miners do on proof-of-work blockchains. Mining is the "work" itself. It's the act of adding valid blocks to the chain. This is important because the chain's length helps the network follow the correct fork of the blockchain. The more "work" done, the longer the chain, and the higher the block number, the more certain the network can be of the current state of things.

More on mining

How did Ethereum's proof-of-work work?

Ethereum transactions are processed into blocks. In the now-deprecated proof-of-work Ethereum, each block contained:

  • block difficulty – for example: 3,324,092,183,262,715
  • mixHash – for example: 0x44bca881b07a6a09f83b130798072441705d9a665c5ac8bdf2f39a3cdf3bee29
  • nonce – for example: 0xd3ee432b4fb3d26b

This block data was directly related to proof-of-work.

The work in proof-of-work

The proof-of-work protocol, Ethash, required miners to go through an intense race of trial and error to find the nonce for a block. Only blocks with a valid nonce could be added to the chain.

When racing to create a block, a miner repeatedly put a dataset, that could only be obtained by downloading and running the full chain (as a miner does), through a mathematical function. The dataset was used to generate a mixHash below a target that is dictated by the block difficulty. The best way to do this is through trial and error.

The difficulty determined the target for the hash. The lower the target, the smaller the set of valid hashes. Once generated, this was incredibly easy for other miners and clients to verify. Even if one transaction were to change, the hash would be completely different, signalling fraud.

Hashing makes fraud easy to spot. But proof-of-work as a process was also a big deterrent to attacking the chain.

Proof-of-work and security

Miners were incentivized to do this work on the main Ethereum chain. There was little incentive for a subset of miners to start their own chain—it undermines the system. Blockchains rely on having a single state as a source of truth.

The objective of proof-of-work was to extend the chain. The longest chain was most believable as the valid one because it had the most computational work done to generate it. Within Ethereum's PoW system, it was nearly impossible to create new blocks that erase transactions, create fake ones, or maintain a second chain. That's because a malicious miner would have needed to always solve the block nonce faster than everyone else.

To consistently create malicious yet valid blocks, a malicious miner would have needed over 51% of the network mining power to beat everyone else. That amount of "work" requires a lot of expensive computing power and the energy spent might even have outweighed the gains made in an attack.

Proof-of-work economics

Proof-of-work was also responsible for issuing new currency into the system and incentivizing miners to do the work.

Since the Constantinople upgrade, miners who successfully create a block were rewarded with two freshly minted ETH and part of the transaction fees. Ommer blocks also compensated 1.75 ETH. Ommer blocks were valid blocks created by a miner practically at the same time as another miner created the canonical block, which was ultimately determined by which chain was built on top of first. Ommer blocks usually happened due to network latency.

Finality

A transaction has "finality" on Ethereum when it's part of a block that can't change.

Because miners worked in a decentralized way, two valid blocks could be mined at the same time. This creates a temporary fork. Eventually, one of these chains became the accepted chain after subsequent blocks were mined and added to it, making it longer.

To complicate things further, transactions rejected on the temporary fork may not have been included in the accepted chain. This means it could get reversed. So finality refers to the time you should wait before considering a transaction irreversible. Under the previous proof-of-work Ethereum, the more blocks were mined on top of a specific block N, the higher confidence that the transactions in N were successful and would not be reverted. Now, with proof-of-stake, finalization is an explicit, rather than probabilistic, property of a block.

Proof-of-work energy-usage

A major criticism of proof-of-work is the amount of energy output required to keep the network safe. To maintain security and decentralization, Ethereum on proof-of-work consumed large amounts of energy. Shortly before switching to proof-of-stake, Ethereum miners were collectively consuming about 70 TWh/yr (about the same as the Czech Republic - according to digiconomist(opens in a new tab) on 18-July-2022).

Pros and cons

ProsCons
Proof-of-work is neutral. You don't need ETH to get started and block rewards allow you to go from 0ETH to a positive balance. With proof-of-stake you need ETH to start with.Proof-of-work uses up so much energy that it's bad for the environment.
Proof-of-work is a tried and tested consensus mechanism that has kept Bitcoin and Ethereum secure and decentralized for many years.If you want to mine, you need such specialized equipment that it's a big investment to start.
Compared to proof-of-stake it's relatively easy to implement.Due to increasing computation needed, mining pools could potentially dominate the mining game, leading to centralization and security risks.

Compared to proof-of-stake

At a high level, proof-of-stake has the same end goal as proof-of-work: to help the decentralized network reach consensus securely. But it has some differences in process and personnel:

  • Proof-of-stake switches out the importance of computational power for staked ETH.
  • Proof-of-stake replaces miners with validators. Validators stake their ETH to activate the ability to create new blocks.
  • Validators don't compete to create blocks, instead they are chosen at random by an algorithm.
  • Finality is clearer: at certain checkpoints, if 2/3 validators agree on the state of the block it is considered final. Validators must bet their entire stake on this, so if they try to collude down the line, they'll lose their entire stake.

More on proof-of-stake

More of a visual learner?

Further Reading

Videos

  • Mining
  • Proof-of-stake
back-to-top ↑

Was this article helpful?

Proof-of-work (PoW) | ethereum.org (2024)

FAQs

What is proof of work PoW protocol? ›

PoW requires nodes on a network to provide evidence that they have expended computational power (i.e., work) to achieve consensus in a decentralized manner and to prevent bad actors from overtaking the network. Proof of stake requires collateral in the form of staked cryptocurrency to become a trusted participant.

What is proof of work reward? ›

Proof of work is a consensus mechanism to choose which of these network participants—called miners—are allowed to handle the lucrative task of verifying new data. It's lucrative because the miners are rewarded with new crypto when they accurately validate the new data and don't cheat the system.

How does PoS differ from PoW? ›

PoW involves users solving complex computational puzzles to add new blocks to the blockchain. PoS allows users to validate transactions based on the number of coins they hold and are willing to 'stake' for the network's security.

What is the difference between PoS and proof of work? ›

Proof-of-Work? Proof-of-Stake (POS) uses randomly selected validators to confirm transactions and create new blocks. Proof-of-Work (POW) uses a competitive validation method to confirm transactions and add new blocks to the blockchain.

Is proof of work still used? ›

Proof of work was the consensus mechanism of choice for early cryptocurrencies that needed a secure, decentralized way to process transactions. Although proof of stake has since emerged as a less energy-intensive alternative, proof of work is still used by many major coins.

Is PoS or PoW more secure? ›

To launch such an attack on a PoW network, an attacker would need to invest a lot of resources and money to acquire enough hardware and electricity. This makes it very costly and impractical in most cases. PoS is less secure than PoW in terms of preventing 51% of attacks.

What is my proof of work? ›

Proof of work (PoW) is a form of cryptographic proof in which one party (the prover) proves to others (the verifiers) that a certain amount of a specific computational effort has been expended. Verifiers can subsequently confirm this expenditure with minimal effort on their part.

What is an advantage of proof of work? ›

There are several major benefits to Proof of Work systems. First, they are an excellent way to deter spammers. If a moderate amount of work is required for each process (e.g. sending an email), then most spammers wouldn't have enough computational power to send a huge number of unsolicited emails.

How can I show proof of work? ›

Types of proof of employment
  1. Official pay stubs.
  2. Bank statements.
  3. Tax returns from the previous two years.

Is PoW more profitable than PoS? ›

PoS profit projections offer a higher possible reward, but it similarly has a lower possible reward too. PoW offers a well-set flat rate average, though a more powerful ASIC offers more returns on investments.

What is the advantage of PoW over PoS? ›

In contrast, PoS requires validators to hold a certain amount of crypto to validate transactions and create new blocks. This negates the need for huge resources for mining. Security: PoW is considered to be a more secure consensus mechanism due to its robust security against 51% attacks.

How does PoW verify transactions? ›

PoW is a block verification method originally introduced by the Bitcoin platform, the world's first blockchain. Under PoW, network validators, known as miners, verify transaction blocks by trying to solve a complex computational puzzle. Miner nodes race to solve the puzzle using the hash power of their computers.

What is a disadvantage of proof of work? ›

Problems with proof-of-work

Unfortunately, that methodical pacing results in a waste of resources and a very high level of energy consumption. Because proof-of-work mining requires so much computing power, it tends to consolidate miners down to the few people who can afford the equipment.

What is proof of work example? ›

Proof of work (PoW) is a technology that supports cryptocurrencies by preventing users from carrying out fraudulent transactions. Examples of popular proof-of-work cryptocurrencies include Bitcoin, Litecoin and Dogecoin.

Why is it called proof of work? ›

The reason it's called “proof of work” is because the network requires a huge amount of processing power. Proof-of-work blockchains are secured and verified by virtual miners around the world racing to be the first to solve a math puzzle.

What is proof of work near protocol? ›

NEAR Protocol utilizes a proof-of-stake (PoS) consensus mechanism, where validators are required to stake a certain volume of NEAR tokens to validate blocks and participate in the consensus process. This PoS mechanism is more energy-efficient and sustainable compared to Ethereum's proof-of-work model.

What is the proof of activity protocol? ›

Proof of activity is a consensus algorithm that combines proof of work and proof of stake, developed based on Bitcoin's protocol for cryptocurrencies. How does proof of activity work? Proof of activity works in two phases: proof of work and proof of stake.

What is proof of work authentication? ›

Proof of work (PoW) is a form of cryptographic proof in which one party (the prover) proves to others (the verifiers) that a certain amount of a specific computational effort has been expended. Verifiers can subsequently confirm this expenditure with minimal effort on their part.

How does proof of work provide security? ›

While it's not without limitation, miners using proof of work help ensure that only legitimate transactions are recorded on the blockchain. By doing so, miners also help protect the security of the blockchain from potential attacks that could cause those transacting blockchain-based businesses to suffer losses.

Top Articles
Choosing a diamond solitaire: reasons for buying
17-258MR QBE refunds $15.9 million in add-on insurance premiums
Tlc Africa Deaths 2021
Lamb Funeral Home Obituaries Columbus Ga
Autobell Car Wash Hickory Reviews
BULLETIN OF ANIMAL HEALTH AND PRODUCTION IN AFRICA
Think Of As Similar Crossword
Vanadium Conan Exiles
Thayer Rasmussen Cause Of Death
2016 Hyundai Sonata Price, Value, Depreciation & Reviews | Kelley Blue Book
Housework 2 Jab
A Guide to Common New England Home Styles
Lancasterfire Live Incidents
Hellraiser III [1996] [R] - 5.8.6 | Parents' Guide & Review | Kids-In-Mind.com
My Homework Lesson 11 Volume Of Composite Figures Answer Key
Clare Briggs Guzman
Magic Seaweed Daytona
E32 Ultipro Desktop Version
Bidrl.com Visalia
NV Energy issues outage watch for South Carson City, Genoa and Glenbrook
The Procurement Acronyms And Abbreviations That You Need To Know Short Forms Used In Procurement
How often should you visit your Barber?
25Cc To Tbsp
Mark Ronchetti Daughters
Fastpitch Softball Pitching Tips for Beginners Part 1 | STACK
Spy School Secrets - Canada's History
Where Can I Cash A Huntington National Bank Check
Quality Tire Denver City Texas
Everstart Jump Starter Manual Pdf
Gerber Federal Credit
Weekly Math Review Q4 3
T&J Agnes Theaters
Hermann Memorial Urgent Care Near Me
Duff Tuff
Trivago Myrtle Beach Hotels
Craiglist Hollywood
Me Tv Quizzes
Weather In Allentown-Bethlehem-Easton Metropolitan Area 10 Days
Courtney Roberson Rob Dyrdek
Brake Pads - The Best Front and Rear Brake Pads for Cars, Trucks & SUVs | AutoZone
Skyward Cahokia
Arch Aplin Iii Felony
Wpne Tv Schedule
Actress Zazie Crossword Clue
Take Me To The Closest Ups
Costner-Maloy Funeral Home Obituaries
How to Do a Photoshoot in BitLife - Playbite
Concentrix + Webhelp devient Concentrix
Subdomain Finer
32 Easy Recipes That Start with Frozen Berries
Latest Posts
Article information

Author: Duane Harber

Last Updated:

Views: 5753

Rating: 4 / 5 (71 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Duane Harber

Birthday: 1999-10-17

Address: Apt. 404 9899 Magnolia Roads, Port Royceville, ID 78186

Phone: +186911129794335

Job: Human Hospitality Planner

Hobby: Listening to music, Orienteering, Knapping, Dance, Mountain biking, Fishing, Pottery

Introduction: My name is Duane Harber, I am a modern, clever, handsome, fair, agreeable, inexpensive, beautiful person who loves writing and wants to share my knowledge and understanding with you.