Ethereum Proof Of Stake Hard Fork Explained

in #eos7 years ago

Recently you might have heard about the idea to move from an Ethereum consensus based on the Proof of Work (PoW) system to one based on the so-called Proof of Stake.

what will change regarding mining techniques if the Ethereum community decides to do the transition from “work” to “stake”?


 A basic guide to understanding the problem above.


PROOF OF WORK


1.It requirement to define an expensive computer calculation called mining.

2.A reward is given to find a solution for the mathematical problem.


PROOF OF STAKE


1.The Creator of a new block is chosen in deterministic way,depending on its wealth, also defined as stake.

2.In this system there is no block reward so, the miner takes the transaction fees.

3.Cost effective than POW.



Proof Of Work and  Trustless and Distributed consensus?


Proof of work is a protocol that has the main goal of deterring cyber-attacks such as a distributed denial-of-service attack (DDoS) which has the purpose of exhausting the resources of a computer system by sending multiple fake requests.

Proof of work is maybe the biggest idea behind the Nakamoto’s bitcoin white paper – published back in 2008 – because it allows trustless and distributed consensus.


What’s trustless and distributed consensus?

A trustless and distributed consensus system means that if you want to send and/or receive money from someone you don’t need to trust in third-party services.


When you use traditional methods of payment, you need to trust in a third party to set your transaction (e.g. Visa, Mastercard, PayPal, banks). They keep their own private register which stores transactions history and balances of each account.


The common example to better explain this behavior is the following: if Alice sent Bob $100, the trusted third-party service would debit Alice’s account and credit Bob’s one, so they both have to trust this third-party is to going do the right thing.


With bitcoin and a few other digital currencies, everyone has a copy of the ledger (blockchain), so no one has to trust in third parties, because anyone can directly verify the information written.


Proof of work and mining

Going deeper, proof of work is a requirement to define an expensive computer calculation, also called mining, that needs to be performed in order to create a new group of trustless transactions (the so-called block) on a distributed ledger called blockchain.


Mining serves as two purposes:


  • To verify the legitimacy of a transaction, or avoiding the so-called double-spending;

  • To create new digital currencies by rewarding miners for performing the previous task.

When you want to set a transaction this is what happens behind the scenes:


  • Transactions are bundled together into what we call a block;


  • Miners verify that transactions within each block are legitimate;


  • To do so, miners should solve a mathematical puzzle known as proof-of-work problem;


  • A reward is given to the first miner who solves each blocks problem;


  • Verified transactions are stored in the public blockchain


All the network miners compete to be the first to find a solution for the mathematical problem that concerns the candidate block, a problem that cannot be solved in other ways than through brute force so that essentially requires a huge number of attempts.


When a miner finally finds the right solution, he/she announces it to the whole network at the same time, receiving a cryptocurrency prize (the reward) provided by the protocol.


From a technical point of view, mining process is an operation of inverse hashing: it determines a number , so the cryptographic hash algorithm of block data results in less than a given threshold.


This threshold, called difficulty, is what determines the competitive nature of mining: more computing power is added to the network, the higher this parameter increases, increasing also the average number of calculations needed to create a new block. This method also increases the cost of the block creation, pushing miners to improve the efficiency of their mining systems to maintain a positive economic balance. This parameter update should occur approximately every 14 days, and a new block is generated every 10 minutes.


Proof of work is not only used by the bitcoin blockchain but also by ethereum and many other blockchains.



The important thing you need to understand is that now Ethereum developers want to turn the tables, using a new consensus system called proof of stake.



What is a proof of stake?

Proof of stake is a different way to validate transactions based and achieve the distributed consensus.


It is still an algorithm, and the purpose is the same of the proof of work, but the process to reach the goal is quite different.


Proof of stake first idea was suggested on the bitcointalk forum back in 2011, but the first digital currency to use this method was Peercoin in 2012, together with ShadowCash, Nxt, BlackCoin, NuShares/NuBits, Qora and Nav Coin.


Unlike the proof-of-Work, where the algorithm rewards miners who solve mathematical problems with the goal of validating transactions and creating new blocks, with the proof of stake, the creator of a new block is chosen in a deterministic way, depending on its wealth, also defined as stake.


No block reward


Also, all the digital currencies are previously created in the beginning, and their number never changes.


This means that in the PoS system there is no block reward, so, the miners take the transaction fees.


This is why, in fact, in this PoS system miners are called forgers, instead.


Why Ethereum wants to use PoS?

The Ethereum community and its creator, Vitalik Buterin, are planning to do a hard fork to make a transition from proof of work to proof of stake.


In a distributed consensus-based on the proof of Work, miners need a lot of energy.


And these energy costs are paid with fiat currencies, leading to a constant downward pressure on the digital currency value.


In a recent research, experts argued that bitcoin transactions may consume as much electricity as Denmark by 2020.


Developers are pretty worried about this problem, and the Ethereum community wants to exploit the proof of stake method for a more greener and cheaper distributed form of consensus.


Also, rewards for the creation of a new block are different: with Proof-of-Work, the miner may potentially own none of the digital currency he/she is mining.


In Proof-of-Stake, forgers are always those who own the coins minted.


How are forgers selected?

If Casper (the new proof of stake consensus protocol) will be implemented, there will exist a validator pool. Users can join this pool to be selected as the forger. This process will be available through a function of calling the Casper contract and sending Ether – or the coin who powers the Ethereum network – together with it.


“There is no priority scheme for getting inducted into the validator pool itself; anyone can join in any round they want, irrespective of the number of other joiners,” he continued.


The reward of each validator will be “somewhere around 2-15%, ” but he is not sure yet.


A safer system?

Any computer system wants to be free from the possibility of hacker attacks, especially if the service is related to money.


So, the main problem is: proof of stake is safer than proof of work?


Experts are worried about it, and there are several skeptics in the community.


Using a Proof-of-Work system, bad actors are cut out thanks to technological and economic disincentives.


In fact, programming an attack to a PoW network is very expensive, and you would need more money than you can be able to steal.


Instead, the underlying PoS algorithm must be as bulletproof as possible because, without specially penalties, a proof of stake-based network could be cheaper to attack.


To solve this issue, Vitalik Buterin created the Casper protocol, designing an algorithm that can use the set some circumstances under which a bad validator might lose their deposit.


He explained: “Economic finality is accomplished in Casper by requiring validators to submit deposits to participate, and taking away their deposits if the protocol determines that they acted in some way that violates some set of rules (‘slashing conditions’).”


Slashing conditions refer to the circumstances above, or laws that a user is not supposed to break.



Thanks to a PoS system validators do not have to use their computing power because the only factors that influence their chances are the total number of their own coins and current complexity of the network.


So this possible future switch from PoW to PoS may provide the following benefits:


Energy savings;


A safer network as attacks become more expensive: if a hacker would like to buy 51% of the total number of coins, the market reacts by fast price appreciation.


This way, CASPER will be a security deposit protocol that relies on an economic consensus system. Nodes (or the validators) must pay a security deposit in order to be part of the consensus thanks to the new blocks creation. Casper protocol will determine the specific amount of rewards received by the validators thanks to its control over security deposits.


If one validator creates an “invalid” block, his security deposit will be deleted, as well as his privilege to be part of the network consensus.


In other words, the Casper security system is based on something like bets. In a PoS-based system, bets are the transactions that, according to the consensus rules, will reward their validator with a money prize together with each chain that the validator has bet on.


So, Casper is based on the idea that validators will bet according to the others’ bets and leave positive feedbacks that are able accelerates consensus.


source:blockgeeks

Sort:  

I heard that Eth price will go down once POS implements.

We have to wait and watch.

How Casper prevent the hard fork like ETH vs ETC?

When that happened, miners have to choose which one they will go with, because you can't mine ETH and ETC at the same time with your hardware. But in POS situation, people can just simply own both, instant double the value.

This has been bother me, I can't find the answer online. Let me know what do you think? Thanks!

Coin Marketplace

STEEM 0.17
TRX 0.13
JST 0.028
BTC 56570.01
ETH 3028.13
USDT 1.00
SBD 2.29