filecoin-project / consensus

Filecoin consensus work
Other
42 stars 5 forks source link

Local Predictability's effect on attacks #49

Open sternhenri opened 5 years ago

sternhenri commented 5 years ago

This conversation came up in discussion with @whyrusleeping, discussing tradeoffs related to lookback parameters in the current EC construction and specifically the loss of local unpredictability (i.e. with a k block lookback for ElectionProofs, a miner knows they will win k blocks in advance).

The fears are of the following attacks, related to transaction censorship by colluding parties who know they will win ahead of time and can coordinate for runs of n rounds in which they win:

Discussing this with @zenground0, we make a few claims:

We believe the rational strategy for this attack in EC is as follows:

So the point here is that lookback param gets you better info, and a better estimate for your likelihood of being an effective 51% attacker over n rounds.

But point is that this attack gets you better info (when you will win), either way you don’t know when others will win (so no perfect info). But so less likely to mess up when you should run attack, i.e. better outcome. Thus the issue here is not actually a new class of attacks enabled by local predictability, but rather more cost efficient attack through better timing.

Can we quantify this gain? Yes, chernoff bounds help here (cc @bvohaska) and some of this work has already happened in the code/attacks section of this repo. @zenground0 will spend a bit of time trying to estimate what an attacker gains (ie the cost of having a lookback), while I finish the sim to motivate the lookback. @sa8 is also thinking about whether the lookback is worth the complexity it introduces into EC.

We can then make a rational decision about the construction.

sternhenri commented 5 years ago

Do you consider this launch critical @ZenGround0 ?

If so, could you help with it? or @bvohaska ?