Steemit Crypto Academy Season 4 Beginners' course - Homework Post for Task 6: Different types of Consensus Mechanisms

in SteemitCryptoAcademy3 years ago

What is the difference between PoW & PoS? Advantages & Disadvantages? Which one is better in scaling Capacity? Examples?


What is PoW?

Proof of work(poW) is a method used in cryptocurrency called mining, to ensure that computational effort is shown for the work done by the computer, so no one can duplicate their process. This helps to maintain accuracy of blockchain. A coin owner must do some amount of work before they are allowed to create another block on the blockchain. The amount of work needed varies depending on how complicated or easy it is for someone else to replicate their efforts. For example bitcoin miners must find an answer that produces 256-bit hash value before they are allowed to create a new block on the existing blockchain. In this case, a bitcoin miner must try 2^256 possible answers to find a solution.

In proof-of-work systems miners compete to mine the next block by using one of many available hash functions. The proof-of-work system can be used in a number of different ways to secure a cryptocurrency, such as proof-of-stake or proof-of-burn.

1.png
Source
The core concept of the proof-of-work is that it is easy to spend your effort and resources on something if you can easily verify that your efforts were successful. Unlike some other methods, such as proof-of-stake, which get around this issue by having an alternate difficulty adjustment mechanism like merge mining or POSV (Proof of Stake Velocity), proof-of-work requires the entire network to be working at the same time. This means that there must be a way to verify that you did work for a specific piece of data and had successfully solved a puzzle. The computational effort required to mine a given block represents an amount of electricity and computer hardware. Mining alone does not create new coins and is used to secure and verify the blockchain. PoW is not a perfect method but it's the most cost-effective one at present time.

A-Simplified-Pseudocode-of-the-Proof-of-Work.png
Source

Advantages of PoW

Advantages of proof of work are as follow:

  • It is decentralized because the process of mining is done by various nodes, which are located all over the world.
  • It is open to everyone who has the right hardware and free time; anyone can mine.
  • Anyone can verify all submitted blocks, thus preventing double-spending or fraud.
  • It is impossible to conduct round-trips (including change address attacks) with transactions that use proof-of-work as their proof of authenticity.
  • Miners are rewarded for conducting work that helps secure the network, encouraging people to come up with better solutions over time .
  • Work is required to be processed by the network before being accepted, ensuring the correct order in which transactions are processed.
  • Proof of work is a deterrent against denial of service attacks because it obliges an attacker to have enough mining power to overtake the entire network.
  • It is very robust compared to other solutions, because it doesn't rely on a single point of failure . It provides resilience due to the distribution of tasks among miners. When one miner fails or are banned because their mining was fake or have other malicious intentions, other miners ensure that work continues without interruption .
  • It can be used as an anti-spam measure because of the computational power that it requires .
Disdvantages of PoW
Proof of work provides many advantages that are helpful for individuals and businesses that use bitcoin, especially bitcoin miners who play an important part in saving bitcoin from harm on a daily basis . But it has also some disadvantages that are:
  • It is very costly and energy consuming, since solving these computationally complex mathematical problems can be done by running very powerful computers that consume a lot of energy .
  • There will always be a need for miners, so if miners leave the network, bitcoin will not survive.
  • A few miners can have an enormous amount of power over bitcoin forks.
  • The solution to the problem of double spending is not very clear .
  • Proof of work has confused many people due to its complexity and seeming un-understandability . This complexity makes it difficult to understand how it all works, but this does not stop people from tryin

What is PoS?

Proof of stake (PoS) is a category of consensus algorithms for public blockchains that depend on the nodes having a certain amount of wealth in order to be called upon to create new blocks. It replaces the protocol that requires participants in any blockchain network to prove ownership. For example, Bitcoin's Proof-of-Work (PoW) was designed so miners would work together to solve cryptographic puzzles which require expansion in storage and energy consumption for every puzzle solved. Proof of stake does not require miners, or anyone else, with special equipment or skill sets. Instead, nodes with a higher stake in the network are selected which minimizes the risk of a malicious attack. For more details on Proof-of-Work, see Bitcoin Mining.

In PoS-based cryptocurrencies, blocks are produced in the same way as they are in PoW protocols, but with slight variations. The main difference being that it is the owner of a coin who is required to sign the block, not all of the miners or nodes on a network. In PoW mining, miners have an incentive to lie and manipulate information about new transactions to boost their rewards and increase their mining power. This possibility makes cryptocurrency investors wary of registering with exchanges for fear that the exchange might be hacked and your assets stolen.

Advantages of Proof-of-Stake

Advantages of proof-of-stake are:
  • The total number of coins that are mined is determined by the number of coins that are staked.
  • No special equipment or hardware is needed to participate in proof-of-stake mining.
  • The network is highly resilient against 51% attacks, which make up for the decentralized nature of Proof-of-stake systems, making them very secure networks.
  • The total hash-rate of all mining pools combined is determined by the total amount of coins staked by all users.
Disadvantages of Proof-of-Stake
  • The number of coins that are staked, determines the number of coins that are available for trading (this can be solved by creating a market-cap or price-per-stake model).
  • The majority of block rewards end up in the hands of those who stake the most coins, which may lead to centralization.
  • If a user loses their private key, they lose their investment and cannot trade or sell it until they regain access to their coins and spend them back into circulation.

Which one is better in scaling Capacity? Examples?

Proof of Work is not new to the cryptocurrency field. Satoshi Nakamoto, the creator of Bitcoin, talked about Proof-of-Work in his whitepaper in 2009. The concept of Proof-of-Work has been proven to be vital for the original Bitcoin blockchain. Essentially, it gives miners or people who mine cryptocurrencies an incentive to continue mining blocks and provide security for the chain. Proof of Work provides security by requiring miners to do calculations before they are allowed to add a block onto the chain. This prevents miners from creating fake blocks that can waste time and resources that should be used mining legitimate blocks. The first to find a block gets the reward and transaction fees from the block. The first to find a block also gets a variation of a lottery ticket where if their block is picked as the next block, they will get the reward again.

Ethereum currently uses PoW as well where miners can continue mining blocks and receive Ether as a reward. In Proof of Work, however, there is an issue regarding the scalability of transactions per second because once you have reached certain number of miners or nodes, it would take forever for them to reach consensus on any new transactions. This makes it difficult for transactions to happen on-chain because it will always be trying to reach consensus which can take up time and cause a backlog of transactions. The more transactions there are; the longer it takes for miners to agree on a new block and the longer it will take before any transaction is confirmed. This is why Bitcoin and Ethereum face scalability issues because of how long it takes for transactions to be confirmed.

Proof of Stake's algorithm does not require people to do calculations in order to prove that they have done work. Instead, they are required to have a stake or an amount of cryptocurrency. If you have more, you can mine more and use more of the system; if you have less, you can mine less and use less of the system. You get rewarded more if you add blocks or do transactions more frequently.

If we were to compare Proof-of-Work and Proof-of-Stake in terms of transaction per second capacity, we can conclude that although Proof of Work is better for security, it is not better in terms of scalability.
Sort:  
Loading...