{"repo":"krutibaraiya/DPoS-Consensus","free":true,"listed":false,"github":"https://github.com/krutibaraiya/DPoS-Consensus","clone":"git clone https://github.com/krutibaraiya/DPoS-Consensus.git","description":"Implementation of DPoS Consensus algorithm","language":"Python","stars":10,"topics":["blockchain","delegated-proof-of-stake","dpos"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"DPoS consenus algorithm Objective This assignment is in continuation to our previous assignment where we had implemented a simple multi-node Blockchain for Dexter's coffee shop in Python-Flask. This assignment focuses on implementing the consensus algorithm - Delegated Proof of Stake for Dexter's Blockchain. Delegated Proof of Stake (DPoS) algorithm DPoS is a reliable, robust, scalable and efficient consensus algorithm in Blockchain technology. It is an innovation over standard Proof of Stake (PoS). In DPoS, each node that has a stake in the system can delegate the validation of a transaction to other nodes by voting. Here, in DPoS ,user's vote weight is proportional to their stake rather than block mining being tied to the stakeholders' total tokens. Implementation of DPoS in Dexter's Blockchain All the methods are properly defined in Blockchain class of blockchain.py and the API routes to interact with the blockchain in main.py Methods in blockchain.py We have made localhost:5000 as a primary node which takes care of adding new nodes to the network, maintain the stakes of those nodes , conduct the election process and choosing 3 delegate (validator) nodes which are authorised to validate transactions mine new blocks. We can add as many nodes as we want to the network using the nodes/add API endpoint, but only 3 nodes will be selected as validator (delegate) nodes after the voting process. Here, for the purpose of simulation of voting process, our algorithm assigns random in","default_branch":null,"files":null,"tree":[],"storefront":"/r/krutibaraiya","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/krutibaraiya/DPoS-Consensus/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}