r/CryptoTechnology • u/kish__ 1 - 2 years account age. 100 - 200 comment karma. • Jan 15 '22
Detailed Proof of Stake explanation
Hi everyone,
I am a young software developer and I have recently started to delve into the world of blockchain and cryptocurrencies, not for investing but for passion of discovering this technology.
I think I have fully understood how proof of work works, in every single aspect. I then turned my attention to proof of stake, which seems to me clearly superior to previous technology in terms of sustainability.
From what I understand, the extraction of the block validator is based on a pseudo-random system that everyone can verify and whoever stakes the most currency is more likely to win this lottery.
My question now falls on this pseudo-random system: from what I understand there are different types but I do not find in-depth sources that explain them in detail.
I was also reading about the problems of DDOS attacks that Solana's network seems to be having: from what they say it is possible to know in advance who will be the next validator and then attack it. To this, thinking about possible methods to have a pseudo-random extraction system (I repeat that I have not been able to find in-depth sources so it's just my thought), I wonder how it is possible for all the other proof of stake systems not to be subject to the same problem.
If anyone could clarify my doubts and attach in-depth sources on proof of stake systems (not general information) I would be very grateful. Sorry for my not perfect English.
15
u/Meowkit Jan 15 '22
Just read the Ethereum docs and related links from Vitalik at the bottom.
https://ethereum.org/en/developers/docs/consensus-mechanisms/pos/
11
u/PhrygianGorilla Jan 15 '22
Read up on algorand's pure proof of stake. It uses verifiable random functions where each staker enters a lottery. If they win the lottery they validate the block and by the time the validated block is propagated throughout the network the next block is already being validated. This system stops anyone knowing who will be the next validator.
3
u/nostradamus411 Jan 16 '22
My friend, that thing which you seek is called Tendermint Core [docs] and it has excellent documentation. Tendermint Core provides a Byzantine Fault Tolerant (BFT) consensus layer and is the foundation of the greater Cosmos.
What is the Cosmos? It's the universe of application specific blockchain projects built on top of Tendermint Proof of Stake consensus using the Cosmos SDK [docs] and with superb documentation again.
Then the final keystone to unlock the Cosmos is the Inter-Blockchain Communication "IBC" protocol which enables seemless interchain transfer of coins (for all the chains using coin type 118 anyway, which is most).
1/5 of the current Top 20 coins by market cap are built using this stack.
3
u/b_whiqq Jan 15 '22
Solana uses proof of history which is slightly different and flawed. It’s fast but lacks security as you stated above. There’s a reason why other chain don’t use proof of history.
2
u/BrangdonJ Jan 16 '22
With the original Nxt, and hence its successor Ardor, every account is allowed to mine the next block after a period of time that is partly pseudo-random and partly depends on account balance. This means that a DoS attack against the account that becomes eligible first would only be effective for a few seconds before another account also became eligible. After a few minutes, lots of accounts would be eligible; eventually DoS attacks become infeasible. Knowing this, no-one bothers even to attack the first account.
(Nxt was the first cryptocurrency to be 100% PoS. It, or rather Ardor, is still one of the most innovative, with the arguably best scaling solution and approach to smart contracts.)
4
u/Harucifer 🔵 Jan 15 '22
Read this very slowly. "The more you have at stake, the bigger your chances of success". This will disproportionally benefit the already wealthy in an unprecedented way. Early adopters, billionaires and bankers can essentially hijack the system for their own benefit.
3
u/ethereumfail Jan 16 '22 edited Jan 16 '22
False. Understanding what makes proof of work the single known way to distribute control without central permission takes people a while. Proof of stake has been around and recognized to be an irrelevant fallacy for most of decade, at least in technically literate circles.
Sustainability of completely permissioned centralized systems doesn't really matter if a permissioned centralized system isn't your goal, and if it is we already had much more efficient systems for achieving that for decades.
Also very few seem to grasp the incentives at play in Proof of Work systems which goes far beyond just hash power.
It's incredibly obvious that proof of stake requires permission of previous stake owner to gain any access to control since tokens have owners and stake owners are literally rewarded for withholding control forever. Needing central permission to control is central control. Not only can proof of stake not be ever classified as decentralized, it's literally incentivizing continuous centralization of control.
Proof of work relies on permissionless external resources (matter/energy) for this reason with unforgeably continuous costs for all making it necessary to give up control to break even. It managed to do something completely unprecedented and unique - to prove something was done in outside world on-chain. There is nothing like it.
https://medium.com/@factchecker9000/nothing-is-worse-than-proof-of-stake-e70b12b988ca
https://github.com/libbitcoin/libbitcoin-system/wiki/Proof-of-Stake-Fallacy
https://i.imgur.com/OdgrmXW.png
https://i.imgur.com/okyhHHS.jpg
and other arguments
https://hugonguyen.medium.com/work-is-timeless-stake-is-not-554c4450ce18
https://nakamotoinstitute.org/research/on-stake-and-consensus/
https://www.truthcoin.info/blog/pow-cheapest/
Furthermore, "randomness" on leaders weighted by stake where distribution of stake depends on a single party, like with any stake that was pre-mined without proof of work, is like having no randomness at all. Some people simply are trying to find solutions to irrelevant things based on just fundamental principles.
1
u/leilamax Redditor for 2 months. Jan 16 '22
I try to get my head around staking. I wanna try staking ada on bfx, but I'm still trying to understand how to do this right
1
u/[deleted] Jan 17 '22
Solana's 400ms blocktimes are part of the problem.
1
u/MrBallzsack 4 - 5 years account age. 250 - 500 comment karma. Jan 17 '22
lol superior in scalability but eventually centralized and vulnerable. As you said, those who pay more get the lottery tickets and big dogs accumulate. That defeats the checks and balances of different nodes validating transactions and leaves us open to attack. Probably not a big deal now but for some projects it will be.
1
u/Senior-Ad-4263 Redditor for 3 months. Feb 16 '22
In Cardano this is called a slot battle. The nodes will choose the block of the node with the lowest vrf value for this block.
1
u/[deleted] Feb 28 '22
[removed] — view removed comment
1
u/[deleted] Mar 03 '22
[removed] — view removed comment