<div dir="ltr">Good morning list,<div><br></div><div>This is an interesting and simple idea, thanks for sharing this paper!</div><div><br></div><div>However I think there are a couple of important issues (but it could be me misunderstanding):</div><div><br></div><div>* the assumption that the mempool is a shared resource is flawed: it's entirely possible</div><div>  to have very different mempools in different areas of the network, for a potentially long</div><div>  period of time (see the RBF pinning thread [1]), and an attacker can leverage this fact</div><div>* a corollary is that Bob may not know that Alice has published her transaction, and will</div><div>  end up publishing his timeout tx, unknowingly giving the two preimages to the miners</div><div>* a corollary of that is a very unhealthy incentive to miners, when they receive an HTLC</div><div>  success tx, to always wait for the timeout before confirming the transaction, in hope that</div><div>  they'll receive the second preimage and will be able to claim the funds for themselves</div><div>  (whereas currently they don't gain anything by waiting before confirming these txs)</div><div><br></div><div>To be fair the paper states that it doesn't address issues of malicious miners or an attacker</div><div>colluding with a miner, but I think that even honest miners now have an unhealthy incentive</div><div>regarding htlc success confirmation.</div><div><br></div><div>Let me know if I misunderstood something, or if you have ideas on how to explore that</div><div>threat model in the future.</div><div><br></div><div>Cheers,</div><div>Bastien</div><div><br></div><div>[1] <a href="https://lists.linuxfoundation.org/pipermail/lightning-dev/2020-April/002639.html">https://lists.linuxfoundation.org/pipermail/lightning-dev/2020-April/002639.html</a></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 25 juin 2020 à 14:45, Nadav Ivgi via bitcoin-dev <<a href="mailto:bitcoin-dev@lists.linuxfoundation.org">bitcoin-dev@lists.linuxfoundation.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi ZmnSCPxj,</div><div><br></div><div>You are of course correct. I 
had considered the effect of reorgs, but the email seemed to be getting 
too lengthy to mention that too.<br></div><div><br></div><div>You would 
need a few spare blocks in which Bob won't be accused of bribery as a 
safety margin, which does reduce the time frame in which Alice can get 
her transaction confirmed in order to have a valid bribery fraud. This 
seems workable if the time frame was long enough (over a few hours 
should be sufficient, assuming we consider reorgs of over 3-4 blocks to 
be unlikely), but could indeed be problematic if the time frame is 
already short to begin with.</div><font color="#888888"><div><br></div><div>Nadav</div></font></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 25, 2020 at 7:04 AM ZmnSCPxj <<a href="mailto:ZmnSCPxj@protonmail.com" target="_blank">ZmnSCPxj@protonmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Good morning Nadav,<br>
<br>
> > I and some number of Lightning devs consider this to be sufficient disincentive to Bob not attacking in the first place.<br>
><br>
> An additional disincentive could be introduced in the form of bribery proofs for failed attempts.<br>
><br>
> If we assume that "honest" users of the LN protocol won't reveal their timelocked transactions before reaching the timelock expiry (they shouldn't anyway because standard full node implementations won't relay them), we can prove that Bob attempted bribery and failed to an outside observer by showing Bob's signed timelocked transaction, spending an output that was in reality spent by a different transaction prior to the locktime expiry, which should not be possible if Bob had waited.<br>
<br>
<br>
Unfortunately this could be subject to an inversion of this attack.<br>
<br>
Alice can wait for the timelock to expire, then bribe miners to prevent confirmation of the Bob timelocked transaction, getting the Alice hashlocked transaction confirmed.<br>
<br>
Now of course you do mention "prior to the locktime expiry" but there is now risk at around locktime.<br>
<br>
Particularly, "natural" orphaned blocks and short-term chainsplits can exist.<br>
Bob might see that the locktime has arrived and broadcast the signed timelocked transaction, then Alice sees the locktime has not yet arrived (due to short-term chainsplits/propagation delays) and broadcast the signed hashlocked transaction, then in the end the Alice side of the short-term chainsplit is what solidifies into reality due to random chance on which miner wins which block.<br>
Then Bob can now be accused of bribery, even though it acted innocently; it broadcasted the timelock branch due to a natural chainsplit but Alice hashlocked branch got confirmed.<br>
<br>
Additional complications can be added on top to help mitigate this edge case but more complex == worse in general.<br>
For example it could "prior to locktime expiry" can ignore a few blocks before the actual timelock, but this might allow Bob to mount the attack by initiating its bribery behavior earlier by those few blocks.<br>
<br>
Finally, serious attackers would just use new pseudonyms, the important thing is to make pseudonyms valuable and costly to lose, so it is considered sufficient that LN nodes need to have some commitment to the LN in the form of actual channels (which are valuable, potentially money-earning constructs, and costly to set up).<br>
<br>
Other HTLC-using systems, such as the "SwapMarket" being proposed by Chris Belcher, could use similar disincentivizing; I know Chris is planning a fidelity bond system for SwapMarket makers, for example, which would mimic the properties of LN channels (costly to set up, money-earning).<br>
<br>
Regards,<br>
ZmnSCPxj<br>
</blockquote></div>
_______________________________________________<br>
bitcoin-dev mailing list<br>
<a href="mailto:bitcoin-dev@lists.linuxfoundation.org" target="_blank">bitcoin-dev@lists.linuxfoundation.org</a><br>
<a href="https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev" rel="noreferrer" target="_blank">https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev</a><br>
</blockquote></div>