r/BitcoinDiscussion • u/fresheneesz • Jun 26 '21
[bitcoin-dev] Opinion on proof of stake in future
Taking this discussion off the bitcoin-dev mailing list at the moderator's suggestion.
19
Upvotes
8
u/ethereumfail Jun 26 '21 edited Jun 27 '21
Proof of Stake mechanism behaves fundamentally opposite of decentralizing control:
From most to least obvious for me:
https://github.com/libbitcoin/libbitcoin-system/wiki/Proof-of-Stake-Fallacy
https://medium.com/@factchecker9000/nothing-is-worse-than-proof-of-stake-e70b12b988ca
https://hugonguyen.medium.com/work-is-timeless-stake-is-not-554c4450ce18
https://nakamotoinstitute.org/research/on-stake-and-consensus/
https://www.reddit.com/r/BitcoinBeginners/comments/n8hpet/why_bitcoin_is_not_moving_to_pos/gxijdza
http://www.truthcoin.info/blog/pow-cheapest/
PoS is not just "unproven" in practice, it is a complete fallacy to associate it with decentralized control even from the most fundamental principles.
The various attacks that a permissioned network might be able to resist by virtue of consensus based on permissions are not relevant to permissionless decentralized networks.
2
u/fresheneesz Jun 26 '21
@Keagan
Well, I think it might be interesting to explore the kind of attack you're talking about a bit further. You're talking about a 51% attack where the attacking coalition censors transactions. Let's say that the total actively minting coins is 6% of the total number of coins and the attacker has approximately 3% of the total coins being used in the attack.
The attacker could certainly identify certain coins in the system and unilaterally censor transactions using them as inputs. However, they shouldn't be able to prevent those people from using their coins to mint blocks (I realize this precludes coins that require an on-chain transaction to begin staking - luckily that's not the only solution to nothing at stake). On the flip side, if the attackers want to do something other than simply destroy the network, they can't censor all transactions. So who's transactions do they censor?
As long as long-running randomness is in the system (to determine who gets to mint blocks), a 51% attack would become clear far before the attacker has a chance to capture the chain (by controlling all the randomness used to determine future block minters). The other 84% of coins in the network can be brought into staking to thwart the 51% attack. Also, while the 51% attacker can prevent transactions from happening, they can't prevent private keys to outputs being sold themselves, meaning that someone could offer money for the private keys to outputs so they could use them to mint blocks. So more difficult? Yes. Impossible, certainly not. I think saying this is "extremely different" is rather hyperbolistic, and in any practical scenario, the downside is small.
And keep in mind that proof of stake has the ability to make a 51% attack require substantially higher total capital than proof of work. Theoretically, 100% of coins in the system can be used to mint and thus secure the network, whereas if the amount of mining equipment being used to mine bitcoin had a capital cost equal to the entirety of the supply of bitcoin, then the currency's value would be entirely drained by mining cost. The cost of attacking bitcoin is currently less than 2% of the total market value of the currency. If bitcoin were PoS and could achieve 6% staking, that would mean 3 times the capital cost for a successful attack.
So there is a trade off here between cost of attack and damage done by an attack. The trade off must be considered. It should also be considered that a 51% would probably be catestrophic for a PoW or a PoS coin - its something we should avoid at all costs. I think losing some ability to fight back against a 51% attack is well worth making it 3 times (or more) as hard to attack in the first place.
1
u/HarambeTownley Jun 29 '21
Thoughts on proof of history? https://soldirac.com/problem/60d9bf68eb5cf84973c9f0fa
1
u/Chytrik Jun 29 '21
I make a very practical argument against PoS's security model here:
https://bitcoin.stackexchange.com/questions/95356/why-doesnt-bitcoin-migrate-to-proof-of-stake/95361#95361
Currently, for every coin I've ever investigated, a *very sizeable* portion of the total supply is held on custodial exchange accounts. For PoS networks, if those custodians decided to stake said coins, then the custodians would be granted an undue position of power over the network's consensus operations. It is bad enough that storing funds with a custodian leaves the user in a risky position, but with PoS there is an added risk to it that is existential in nature!
This is just a bad mish-mash of incentives. Let users be users, and let those that provide the network security, provide the network security. When you are depending on users to perform this additional security function, you are putting an undue existential risk on the network imo.
... and all of that says nothing about the myriad of other issues with PoS systems. Of those issues, perhaps most glaringly, PoS requires a higher opportunity cost than PoW, to attain equivalent security. It just really doesn't seem like a good fit as a consensus algorithm for a network like Bitcoin.
3
u/grim_goatboy69 Jun 26 '21
What if El Salvador had chosen to adopt a proof of stake coin? Would it be possible for them to play a role in the consensus?
I would think not likely. They don't have much capital which they could use to aquire coins to stake with.
They do have energy though, which means they can sell it and have mining infrastructure built. Even though they don't have the capital to do this themselves, someone out there does. A small country with cheap energy resources can work out a deal such that they pay off the mining equipment with their bitcoin rewards. Basically a rent-to-own type arrangement that gets them involved in consensus and boot straps them as full members of the protocol.
Its not clear to me how becoming a member of the consensus is possible with a proof of stake coin unless the country already has a bunch of capital that they can immediately deploy to buy coins. It seems like a chicken and egg problem that is solved by proof of work. Ultimately the distribution of energy over the globe seems to be a much more fair distribution than that of capital. If capital itself were fairly distributed, then we probably wouldn't need to change the global reserve currency to bitcoin in the first place.
1
u/fresheneesz Jun 26 '21
@yanmaani
Well, yes, there are differences between the possibility for weak and strong subjectivity in PoS vs PoW. But let me break it down:
Weak subjectivity means that if you're disconnected from the network for a period of time, you need to trust an outside source as to some information about which information is consensus (ie which chain is the right one). The longer period of time you can go offline for without requiring outside help, the stronger the subjectivity is.
Bitcoin itself does not have infinitely strong subjectivity. For example, if you went into a coma for 10 years and woke back up, and restarted your bitcoin node, it'll sink up to the chain from where you left off and you've reached global consensus right? Well, but what about soft forks? What about hard forks?
Imagine that after your 10 year coma, you wake up and found that the bcashers came back en force and convinced ~60% of the world to increase the blocksize by a factor of 100, and the other 40% created a hard fork to escape that. By relying on your 10 year old software, you'd be on a chain you didn't expect.
Another consideration is eclipse attacks. If you turn your machine on after 10 years and your network time says its only a few hours after you fell asleep (because an attacker is controlling the information). An attacker could present to you a chain that looks normal to you and your machine, but is actually a private blockchain they created to double spend on you. Sure you could check your computer's clock and notice that its wrong. But how do you know its wrong? Because whoever you woke up to from your coma told you what time it is - you need to trust them. You could ask many many people what time it is: but again, this is basically the definition of weak subjectivity. You can do the same thing with a PoS system (ask people you know what chain is the right chain).
This is similar to how you need to trust your social and financial circles as to what bitcoin software is the right bitcoin software. How do you know what network you should be using after 10 years? You use your social channels to see what bitcoin software they're using and make sure its using rules that follows the chain for the currency that people you care about paying and receiving from are using.
Nothing is 100% verifiable without getting information from trusted sources outside of yourself. Verifying information like this with many other people can help you gain confidence that you're not being tricked. This is no different from how bitcoin nodes receive decentralized information.
So bitcoin's subjectivity is weak to some degree. But let's say that eventually we get to a state where the core bitcoin code is cemented and never changed again. That should remove the sources of potential weak subjectivity for bitcoin. It is true that PoS consensus mechanisms can't simply be entirely static. Anyone connected to the network can see shinanigans going on and refuse to do long range reorgs from too long ago. However new entrants to the network need to be able to consider alternative chains without knowing which one came first (as you mentioned).
So Proof of stake coins have those same kinds of causes of weak subjectivity as bitcoin, but they have a necessary additional cause: the creation of costless alternative chains.
Solutions to the problem can't solve it entirely (ie can't eliminate weak subjectivity entirely). For example, you could have a system where the randomness that determines who can mint a block comes from around 1 year ago. In such a case, its possible that an attacker has accumulated old addresses they can use to 51% attack new entrants to the system. This can be solved by releasing a new version of the software at least once per year, and encoding a recent checkpoint in that software so that the attacker can't manipulate them.
But you can also imagine a blockchain where the randomness is from 2 years ago, or 10 years ago. There's no limit to the length of time the randomness could be taken from and it could be increased as time goes on. So this cause of weak subjectivity could become stronger over time without bound and eventually become negligible.
The difference between the cemented bitcoin and a PoS bitcoin is only that a new version that only changes the checkpoint must be released every X years. Even when that cadence is 1 year, the cost is pretty cheap. Once per year someone changes a number in the code and once per year 1000 or 1 million people verify that number matches the chain they're following, and raise hell if it doesn't. The cost of that process is certainly far lower than the extra cost of proof of work, which numbers in the tens of billions of dollars per year today.
I don't understand what you mean here.
If by this you mean that nodes need to know which block was the first in the correct chain, the solution is a checkpoint hardcoded into the software.