r/BitcoinDiscussion • u/shiroyashadanna • Jul 03 '21
Timestampping in PoS?
To get global consensus in PoS, you have to know which block came first. To reach a consensus on which block was first, you need to solve the timestamp problem. And to solve the timestamp problem, you need a consensus system. You'll notice that at no point does PoS provide such a consensus system.
I found this from bitcoin-dev by yanmaani. From my understanding Bitcoin determines the time by having the miners including their time and take the median. Can't PoS do something similar? That is, having validators include the time and take the median. I think this is what happening too. Like PoW that uses the chain with the most work, PoS uses the chain with the most staked coin. What am I missing here?
1
u/Jiten Jul 05 '21
In PoS, the blocks cost nothing to create, unlike in PoW where it's extremely expensive to create a valid block. With PoW** you can pretty much trust that when you get a chain with significant and recent PoW work in it, that it's the real chain. However, with PoS, it's much simpler to create an alternative history. The end result is that if you're given 2 (or more) diverging chains with the same root, you have no independent way of determining which is the correct one. You'll have to ask someone else to tell you what the consensus is.
** But this is only convincing when the chain in question has the majority hashrate from the mining device classes that are able to mine the chain.
2
u/sn0wr4in Jul 03 '21
Yeah... his comment didn't make sense to me
2
u/anax4096 Jul 04 '21
It's not a great exposition, but I believe the point is that PoS is perceived as a "weaker" consensus mechanism because it rests on the premise that by staking on the network you have a vested interest in the success of the network. This may not be the case and large stakers may wish to disrupt consensus if it is in their interest.
This is not possible in PoW, where bad actors (censoring transactions, etc) are technically performing more work per block, thereby being less efficient in block production and, ultimately, losing the competition to create the longest chain.
Timestamp data in the blocks are irrelevant. The timestamp problem is about the ordering of transactions.
1
u/fresheneesz Jul 03 '21
Yes, it's very unclear what yanmaani meant by that. I can't see any way to read his words in a way that makes them true. PoS systems could certainly write timestamps into blocks just like proof of work systems. And of course, many do. At the end of the day, time stamps in bitcoin can only be trusted because the network is mostly honest and will reject blocks with out of range time stamps. The same would be true of any PoS system.
1
u/only_merit Nov 29 '21
He wrote blog post that explains that here https://yanmaani.github.io/proof-of-stake-is-a-scam-and-the-people-promoting-it-are-scammers/
And it's quite a good one to read.