How Ethereum Mining Works
How Ethereum Mining Works
Last updated: April 14, 2017 6:37 pm
Today, miners play an important role in making sure ethereum works.
This role isn’t immediately obvious, though.
Many new users think that the sole purpose of mining is to generate ethers in a way that doesn’t require a central issuer (see our guide “What is Ether?“). This is true. Ethereum’s tokens are created through the process of mining at a rate of 5 ether per mined block. But mining also has another at least as important role.
Usually, banks are in charge of keeping accurate records of transactions. They ensure that money isn’t created out of thin air, and that users don’t cheat and spend their money more than once.
Blockchains, though, introduce an entirely new way of record-keeping, one where the entire network, rather than an intermediary, verifies transactions and adds them to the public ledger.
Although a ‘trustless’ or ‘trust-minimizing’ monetary system is the goal, someone still needs to secure the financial records, ensuring that no one cheats.
Mining is one innovation that makes decentralized record-keeping possible.
Miners come to consensus about the transaction history while preventing fraud (notably the double spending of ethers) – an interesting problem that hadn’t been solved in decentralized currencies before proof-of-work blockchains.
Although ethereum is looking into other methods of coming to consensus about the validity of transactions, mining currently holds the platform together.
How mining works
Today, ethereum’s mining process is almost the same as bitcoin’s.
For each block of transactions, miners use computers to repeatedly and very quickly guess answers to a puzzle until one of them wins.
More specifically, the miners will run the block’s unique header metadata (including timestamp and software version) through a hash function (which will return a fixed-length, scrambled string of numbers and letters that looks random), only changing the ‘nonce value’, which impacts the resulting hash value.
If the miner finds a hash that matches the current target, the miner will be awarded ether and broadcast the block across the network for each node to validate and add to their own copy of the ledger. If miner B finds the hash, miner A will stop work on the current block and repeat the process for the next block.
It’s difficult for miners to cheat at this game. There’s no way to fake this work and come away with the correct puzzle answer. That’s why the puzzle-solving method is called ‘proof-of-work’.
On the other hand, it takes almost no time for others to verify that the hash value is correct, which is exactly what each node does.
Approximately every 12–15 seconds, a miner finds a block. If miners start to solve the puzzles more quickly or slowly than this, the algorithm automatically readjusts the difficulty of the problem so that miners spring back to roughly the 12-second solution time.
The miners randomly earn these ether, and their profitability depends on luck and the amount of computing power they devote to it.
The specific proof-of-work algorithm that ethereum uses is called ‘ethash’, designed to require more memory to make it harder to mine using expensive ASICs – specialized mining chips that are now the only profitable way of mining bitcoin.
In a sense, ethash might have succeeded in that purpose, since dedicated ASICs aren’t available to mine ethereum (at least not yet).
Furthermore, since ethereum aims to transition from proof-of-work mining to ‘proof of stake’ – which we discuss below – buying an ASIC might not be a smart option since it likely won’t prove useful for long.
Shift to proof of stake
Ethereum might not need miners forever, though.
Developers plan to ditch proof-of-work, the algorithm that the network currently uses to determine which transactions are valid and protect it from tampering, in favor of proof of stake, where the network is secured by the owners of tokens.
If and when that algorithm is rolled out, proof-of-stake could be a means for achieving distributed consensus that uses fewer resources.
Authored by Alyssa Hertig
Article Source: http://www.coindesk.com
A Beginner’s Guide to Blockchain Technology
- Can Bitcoin Scale?
- Hard Fork vs Soft Fork
- How Bitcoin Mining Works
- How Can I Buy Bitcoins?
- How Could Blockchain Technology Change Finance?
- How do Bitcoin Transactions Work?
- How Do Ethereum Smart Contracts Work?
- How Does Blockchain Technology Work?
- How Does Cloud Mining Bitcoin Work?
- How Ethereum Mining Works
- How Ethereum Works
- How to Make a Paper Bitcoin Wallet
- How to Mine Ethereum
- How to Mine Litecoin and other Altcoins
- How to Set Up a Bitcoin Miner
- How to Store Your Bitcoins
- How to Use Ethereum
- How Will Ethereum Scale?
- What are Bitcoin Mining Pools?
- What are Blockchain’s Issues and Limitations?
- What Are the Applications and Use Cases of Blockchains?
- What Can a Blockchain Do?
- What Can You Buy with Bitcoin?
- What is a DAO?
- What is a Decentralized Application?
- What is a Distributed Ledger?
- What is Bitcoin Cash?
- What is Bitcoin?
- What is Blockchain Technology?
- What is Ether?
- What is Ethereum?
- What is SegWit?
- What is the Difference Between a Blockchain and a Database?
- What is the Difference Between Litecoin and Bitcoin?
- What is the Difference Between Public and Permissioned Blockchains?
- What is the Lightning Network?
- Who Created Ethereum?
- Who is Satoshi Nakamoto?
- Why Use a Blockchain?
- Why Use Bitcoin?
- Digital Asset Names New CEO to Succeed Blythe Masters
March 19, 2019 1:00 PM | By Jit Sutradhar
- BitGo Adds Custody Support for Blockchain Capital’s Security Token
March 19, 2019 12:00 PM | By Jit Sutradhar
- Bitcoin Faces Minor Price Retreat Amid Increasing Bull Exhaustion
March 19, 2019 11:00 AM | By Jit Sutradhar
- Japan to Tighten Rules on Cryptocurrency Margin Trading
March 19, 2019 10:00 AM | By Jit Sutradhar
Bitcoin Faces Minor Price Retreat Amid Increasing Bull Exhaustion
A Lightning API for Bitcoin Futures Data Has Launched
Citi Has Scrapped Its Plan for a JPM Coin-Like Bank-Backed Cryptocurrency
When Bakkt? Bitcoin Futures Market’s Approval Appears Stuck in Limbo
How Ethereum Applications Earn A+ Security Ratings