Fri. Oct 22nd, 2021

Blockchain technology has revolutionized global markets. It has disrupted various sectors like banking, fintech, agriculture, and healthcare. It works on the principles of cryptocurrency, which has made transactions simple and secure. Cryptocurrency in layman’s terms is nothing but digital currency. There were more than 2,000 cryptocurrencies in January 2020 [1]. Ethereum is the second largest cryptocurrency and it functions on a decentralized software platform through which smart contracts and decentralized apps can be built very easily. If Ethereum kindles your interest and you want to learn more about it, this blog will serve as a trusted handbook and answer all your queries.

What Is Ethereum 2.0?

Ethereum 2.0 is an upgrade to the already existing Ethereum blockchain. It aims to increase the speed, efficiency, and scalability of the Ethereum network, enabling it to address the bottlenecks and increase the number of transactions. The pseudo names for Ethereum 2.0 are Eth2 or Serenity. Ethereum 2.0 has some fundamental changes in its structure and design as compared to its previous version. The two major changes are “proof of stake” and “sharding.” Let us look at both these terms to understand the functioning of Ethereum 2.0,

What Is Proof of Stake?

In a proof of stake consensus mechanism, there are validators instead of miners. Their major role is to propose new blocks, provide computing power, storage, and the bandwidth to validate transactions. The validators are given periodic payouts in ETH. There is a deposit contract of 32 ETH that should be locked in by these validators. It is a type of a security deposit that gets forfeited fully or partially in an event of any malpractice. This method is very effective in curbing malpractices.

What Is Sharding?

Sharding is the process of splitting one blockchain into multiple blockchains known as shards. It makes the entire network more efficient as a single validator does not have to handle the workload alone. Every validator maintains information related to “their” shard. These validators are also shuffled between shards regularly to avoid any kind of manipulation. The Beacon Chain is used for the communication and coordination of the shards.

How Does Ethereum Work?

The validators are the most important aspect of Ethereum 2.0 as they are solely responsible for its infrastructure and maintenance. Every validator has two keys: a signing key and a withdrawal key. A signing key is used to perform “work for the blockchain.” There are three main functions of a validator:

  • To propose and add blocks to the Beacon Chain or one of the shard chains.
  • To attest the validity of the beacon and shard chain.
  • To report malicious behavior by other validators.

Due to these reasons, the signing key must be online 24/7. The withdrawal key performs actions on the funds. It is not necessary for the withdrawal key to be available all the time. However, it needs to be secured as the person has control over all the funds. If you want to become a validator, you need to lock up 32 ETH in the beacon chain. Validators do not work alone. They mostly work in committees wherein groups of minimum 128 validators vote on the head of the blockchain. The votes cast are of different types. They are:

  • LMD GHOST votes: Attestations are for the head of the blockchain, specifically for the most recent block that the validators have agreed upon.
  • Casper FFG votes: Attestations are for the checkpoint in the current epoch.

A checkpoint is the most recent block in the first slot of an epoch. Epochs comprise of 32 slots. Once 2 or 3 validators agree upon the most recent checkpoint, it gets justified. Once the previous checkpoint is justified, the last block gets finalized. So, after two epochs one block is finalized.

What Is the Difference Between Ethereum and Ethereum 2.0?

The major difference between Ethereum 2.0 and its counterpart is the consensus mechanism which they use. Ethereum uses proof of work (PoW) mechanism, while Ethereum 2.0 uses proof of stake (PoS) mechanism. The proof of work mechanism is an energy-intensive process in which complex mathematical puzzles are decoded by miners with the help of computer hardware processing power. This is also used to verify new transactions. Whoever decodes the puzzle first, adds a new transaction which contains the previous transactional records making up the blockchain.

In the proof of stake mechanism, crypto is used to verify a transaction by the transaction validators instead of miners. The validators must propose a depending on the time and amount of crypto they hold. When a majority of validators claim to have seen the block, it is added to the blockchain and they are rewarded for conducting the block proposition successfully. This is how “forging” or “minting” takes place. PoS is a more energy efficient mechanism as compared to PoW since it uses less computing power to secure a blockchain.

How Will Ethereum 2.0 Be More Secure?

The most important advantage of Ethereum 2.0 is its scalability. Ethereum 2.0 will have shard chains due to which it can conduct up to 10,000 transactions per second whereas Ethereum can support only 30 transactions per second. This also leads to a lot of delays and network congestion which will not be the case in Ethereum 2.0 [2]. The implementation of shard chains speeds up the network and can scale more easily as the transactions are handled in parallel chains instead of consecutive ones.

The main idea behind devising an upgrade to the existing Ethereum is to exercise more safety in the entire transaction. Many proof of stake networks have a very small set of validators. This accounts for decreased network security. Ethereum 2.0 requires a large set of validators, approximately 16,384, which makes it more decentralized, secure, and less prone to manipulation.