by hypertele-Xii · 5y ago · 0 comments
Suppose a bad actor tries to double spend. They have to cryptographically sign both transactions, so the whole network will eventually receive knowledge of both transactions.
Why can't the network simply wait for some duration of time before accepting a transaction, to verify that no double-spends propagate from elsewhere?
If double spending is ever detected from a party, that party is dis-trusted by the network. The network will de-prioritize processing transactions from dis-trusted parties. Problem solved?
1. You're introducing a requirement that all parties who wish to participate in the network must have diverse connections to the network. In practice many nodes do not meet this requirement. If a new node connects to only a few nodes, those nodes may return conflicting chains. With PoW, a longer chain has significantly more computational effort behind it even if it's only ahead by one or two blocks, so it's easy to prove that the longer chain is the valid one. On PoS, there's no such limitation, and a time limitation doesn't really address the issue (see On Stake and Consensus[1] for a more detailed explanation). Vitalik Buterin calls this "weak subjectivity"[2].
2. Introducing a concept of "dis-trusting". The implementation of this in practice is "slashing", but it doesn't work: I can participate as a legitimate actor in the network, transfer my coins to another address, and then use my original, "trusted" address to validate a chain of blocks which include spends not included in the consensus chain. A new entrant to the network, having no knowledge of the consensus chain, might receive the consensus chain and my malicious chain, and have no way of ascertaining which chain is valid: the consensus chain shows me unstaking and spending my coins, but my chain shows me continuing to stake and holding on to my coins.
There is no significant computational effort needed, but it is incorrect to say that PoS protocols do not limit the number of blocks that can be created. Most PoS systems do in fact have such a limitation.
I encourage you to read the first paper I linked, instead of continuing to respond to parts of my posts out of context.
Any new entrant would be able to clearly see the transaction on one of the chains and from that can determine that the chain not containing that transaction but instead using that output to mint blocks is the cheating block chain. Your attack wouldn't work.
1. The attacker accumulates some coin then spends it / sells it. 2. The attacker starts building a chain using their old keys 3. The attacker presents this chain to a new entrant that they've eclipsed 4. The attacker buys something from the eclipsed victim
Any self respecting PoS protocol would have long cooldowns that would force step 1 and step 2 to be pretty far apart (on the order of months). In step 3, a fake chain would not fool new entrants because the new chain would be growing at a much slower rate than expected (because only the attacker is building on top of it). So there's two reasons that the attack wouldn't work here.
That's not a difficult thing to reason out, but you wouldn't have to reason it out if you had read the paper I linked.
So what? The fork wouldn't be built on by anyone but the attacker. Any new entrant would have software that expects a blockchain being built substantially faster (or with substantially higher difficulty).
> you wouldn't have to reason it out if you had read the paper I linked.
I have read Peolstra's "pos.pdf" that PoS detractors incessently reference multiple times. The paper's conclusion is not correct. All the problems he presents are solvable at once (eg in this protocol: https://github.com/fresheneesz/validatedProofOfStake). He doesn't consider that hard coded checkpoints handily solve the problem of long-range revisions.
One second before Alice "confirms" my transaction, I can send out my transaction to Bob. Since my message takes time to propagate through the network, it won't reach Alice soon enough and she will think I've paid her, and she'll send me whatever I was paying for. But other people will see both these transactions within t seconds of each other. They won't know which they should believe is correct, and they might not accept payment from Alice in the future.
In Ethereum's PoS, by waiting a similar amount of time you actually get finality; at that point your transaction cannot be reverted without a third of total stake being destroyed.
Let's say you wait 1 hour to see whether there was a double spend. If an attacker wanted to, they could spend twice and somehow mess with the network for 1 hour.
For example, an attacker at the internet service provider could intercept packets from the Bitcoin network and just block the other spend transaction from getting to you. You wait 1 hour and consider the payment finalized, and you swap goods for Bitcoin.
Bitcoin is "trustless". There is no trust of any form.
Now key X has been dis-trusted.