Is a consensus mechanism that is developed to address the problems with Proof of Work like Energy Consumption, 51% Attack, etc. Below is a basic implementation of Proof Of Stake to choose a validator who adds the next block to the chain.
The first step is to add a validator with basic details.A user stakes some of the native tokens of the network which makes that node eligible for mining. The probability of a node being selected as a miner depends on the amount it Staked.
To simulate the process, fill the form and submit.
Followed by addition of user, we normalize the stake values and generate a roulette wheel to