Crypto Academy Week 13 - Homework Post for @alphafx

in SteemitCryptoAcademy3 years ago

Hello Professor @alphafx, I'm much grateful for this opportunity to learn from you. I really enjoyed your lecture about consensus algorithms. Wouldn't want to talk too much so I'd head straight to my homework.


Assignment
Write on any of these consensus algorithms extensively

  • Stellar Consensus Protocol
  • Proof of Capacity
  • Proof of Burn
  • Proof of Elapsed Time

Introduction

Consensus algorithm is a mathematical calculation used to establish an agreement on the state of blockchain networks. Basically, consensus algorithms use different strategies to establish the truth about the network and manage which participant gets to set the truth of the network that everyone follows by agreement.

Many different types of consensus algorithms have been developed with time. The first was Proof of Work. Proof of Work (POW), Proof of Stake (POS), and Practical Byzantine Fault Tolerance (PBFT) are the three main types of consensus algorithms used by blockchain networks. Most of the developed ones share similarities with the main types.

Proof of Capacity

Proof of Capacity is a type of consensus algorithm where the participants need to prove they have large storage or memory capacity in their hard drive in order to mine. Before mining the system generates plots which are large data sets to be stored on the hard drive. To increases your chances of getting a block to mine you need to be able to contain a lot of plots. With this participants need to provide a large storage to solve a challenge. And before the challenge to add or mine the next block, participants need to be verified by providing a piece of data which proves they have allocated space to mine.

Proof of Capacity's difference from proof of Work is the use of storage capacity instead of computation power. Proof of Work requires a lot of power/energy. The amount of energy needed to mine using proof of work is quite a lot. Proof of Work with the use of storage capacity instead of computational power has solved power problems associated with Poof of Work. Proof of space and proof of storage share similarities with proof of capacity. You can tell from their names they are variations of proof of Capacity and have similar functions. Burst, Chia, SpaceMint and Storj are blockchains that use proof of Capacity consensus algorithm.

How Proof of Capacity Works

Plotting and mining are to two parts involved with Proof of Capacity. Plotting is the creation of nonces through repeated hashing of data. Nonce means "number only used once." It is basically the number that is solved for by blockchain miners.

Plotting is the first stage. You plot your hard drive to produces nonces by repeatedly hashing your data including your account ID. 8,192 hashes are contained in each nonce. These nonces are put together into a number of pairs called scoops. These scoops are 4,095 of which each is assigned a unique number.

The next stage which is mining is where a participant calculates for a scoop number. The scoop number is between 0 and 4,095. The scoop number selected is then used together with it's nonces to calculate a deadline value. The deadline is a unit period of time in seconds that must be completed since the last forged block before a participant can forge a new block. The deadline is calculated for each nonce on the drive of the participant of which the minimum is selected. The participant with the minimum deadline wins the challenge and is allowed to add or forge a new block and claim the block reward.
Let's say a participant calculates the minimum deadline to be 30 seconds. If no one else is able to forge a block within the 30 seconds, the participant wins the chance to claim rewards and forge a new block.

Advantages of Proof of Capacity

  • The use of hard drive is more energy efficient than the use of ASIC or regular GPUs.
  • Doesn't make people who have ASIC chips or other specialized equipment for mining gain advantage over people.
  • After mining the drive can be cleared and used for other purposes.
  • No need for a constant upgrade of equipment since all hard drives have the ability to store data whether they are new or old.

Disadvantages of Proof of Capacity

  • Some participants might have many hard drives of which just a small portion would be used rendering the rest of the storage space useless.
  • It is not popular and so it hasn't been adopted by developers.
  • Likelihood of being attacked by malware is high when it becomes very popular.
  • Upon popularity expensive hard drives would be created which would make it difficult to purchase hard drives for mining.

Conclusion

Proof of Capacity is an interesting mechanism which when adopted by many developers, would help reduce energy consumption with Proof of Work. It needs some improvement though and I'm sure as time goes on and it's developed better it'll be one of the best consensus algorithms. Thanks once again @alphafx for the great lecture.

Sort:  

You seem to have hastily completed this task, your work lacked a lot in details.

Parameterrating
Presentation1/2
Content2/5
Originality1/3
Total4

Thanks for participating

 3 years ago (edited)

And please if you can do another review again I'd be grateful 🙏. @alphafx

 3 years ago 

Really put a lot of work into this post. I think I deserve better.
Checked others you resteemed and was like wow people actually did a lot far better.
It's just painful right now I invested a lot of time to understand and get a grade of 4. Thanks a lot though @alphafx

 3 years ago 

I hope you see this though @alphafx. Might look like I'm disturbing you but then doing a lot of research to understand before sitting for hours to get this done isn't easy. Thanks 🙏 I'm mentioning your name @alphafx to actually get your attention. 🙏

I appreciate your enthusiasm and hope to see you put in the energy into subsequent task.
The research work was limited, nothing significant said about projects that use this algorithm, no comparison between it and the main blockchains. You needed to bring ore to the table here, and I unerstand that you put in a lot of effort. Keep on with the academy, increase the efforts, you will get better each passing day.

 3 years ago 

Alright Sir @alphafx. Thanks

Coin Marketplace

STEEM 0.17
TRX 0.15
JST 0.027
BTC 60678.52
ETH 2339.38
USDT 1.00
SBD 2.48