lightning-dev

Waiting SIGHASH_ANYPREVOUT and Packing Packages

Waiting SIGHASH_ANYPREVOUT and Packing Packages

Original Postby David A. Harding

Posted on: June 19, 2021 13:36 UTC

In an email thread, Antoine Riard discusses two potential solutions to the pre-signed feerate issue for Lightning: package-relay or SIGHASH_ANYPREVOUT.

There is no clear discussion on how SIGHASH_ANYPREVOUT solves pinnings beyond those LN meetings logs. One potential issue with using SIGHASH_ANYPREVOUT is that it might work for current LN-penalty but not necessarily for eltoo. If Bitcoin Core can rewrite the blind CPFP fee bump transaction to refer to any prevout, anyone else could do the same. This would incentivize miners to rewrite to the oldest state and give them fee revenue now and in the future. An attacker using pinning could reuse their attack at no cost and force the honest user to pay another anyprevout bounty to miners, causing the honest user to spend more on fees than their balance from the closed channel. Package-relay is a reasonable temporary patch and is useful for CPFP fee bumping low feerate transactions received from an external party. The deployment timeline is uncertain, and it is not appropriate to create timelines that depend on the work of a large number of contributors who have not been consulted. Dave suggests that things will get done when they get done.