Attacking the lightning network



Summary:

The author discusses the potential for a doublespend attack in the Lightning Network when setting up a new channel with an untrusted counterparty. They suggest that if a user can afford to do a double-spend despite waiting for N confirmations, then they can take advantage of the network to gain funds. To do this, they recommend opening anonymous channels capable of receiving at least $X and simultaneously constructing multiple lightning channels, funding them at $d each. Once the new channels are active, the user can quickly route multiple payments from their new channels to their anonymous channels until they can't send anymore. The author then suggests publishing the doublespending fork, so that the $d*n never got spent. The author also mentions the cost of a doublespend attack, which would require 1.4*25*M bitcoin to mount over M blocks. If a user can open 2000 channels per block, then X > 1.4*25*M/n, which provides insight into how much capacity the Lightning Network has in routable Bitcoin.


Updated on: 2023-05-18T00:23:14.878940+00:00