LPoS consensus algorithm¶
Proof of ownership with the right to lease. In PoS (Proof of Stake) systems, the creation of a block does not require energy-intensive calculations, the miner’s task is to create a digital block proof.
Proof of Stake¶
The mechanism for allocating block creation rights is based on the number of tokens in the user’s account. The more tokens a user has, the more likely he or she can create a block.
In Proof of Stake consensus the right to generate a block is determined by pseudo-random way, because by knowing the previous miner and balances of all users in the system the following miner can be identified. To do this, calculate the generating signature of the next block as sha256 hash from the generating signature of this block and the public account key. The first 8 bytes of the resulting hash will be a pointer to the following miner. The time of block generation for account i is calculated as:
bi - is a stake (stake of participant’s balance of overall balance of the system);
An - baseTarget, the adaptive ratio, regulating the average time of issue of the block;
Xn - generating signature;
Tmin - 5 seconds, it is a constant defining the minimum time interval between blocks;
C1 - a constant, which is equal 70 and adjusting the form of allocation of the interval between blocks;
C2 - a constant which is equal 5E17 and adjusting the baseTarget value (complexity).
Based on the given formula it is easy to see that the probability of selecting the participant depends on the participant’s stake of assets in the system: the bigger the stake the higher the chance. The minimum number of tokens on the balance for mining is **50,000 WEST*. BaseTarget is a computational complexity, a parameter that maintains the block generation time within a given range. BaseTarget in its turn is calculated as:
R max = 90 - is a maximum reduction of complexity when the block generation time in the network exceeds 40 seconds;
Rmin = 30 - minimal increase of complexity when the block generation time in the network is less than 40 seconds;
S - average generation time, at least for the last three blocks;
Tp - previous baseTarget value;
Tb - computed baseTarget value.
For advanced description of technical features and enhancements of the classic PoS algorithm see article.
Advantages over PoW¶
The absence of complex calculations allows PoS networks to lower the hardware requirements for participants of the system, which reduces the cost of deploying private networks. Also, no additional emission is required, which in PoW (Proof of Work) systems is used for rewarding miners for finding a new block. In PoS-Systems a miner receives a reward in the form of fees for transactions which appeared in its block.
Leased Proof of Stake¶
For a user who has a stake insufficient for effective mining, it is possible to transfer his or her balance for lease to other participants, and receive a portion of the income from mining. Thus you can increase the likelihood of choosing a miner, for which you can receive a portion of the fees for transactions which this miner has placed in its blocks. Leasing is a completely safe operation. Tokens do not leave your wallet, you delegate the right to consider your balance when you draw the right of mining to another member of the network.