A proposal for up-front payments.



Summary:

A potential solution to a jamming attack in payment networks is proposed by Joost Jager, which involves reversing the direction in which the bond is paid. In this case, nodes need to pay to receive an htlc instead of paying to offer one, and a further extension of the route results in greater payments. Each node except the last one receives +1 msat/minute, while the last node pays n msat/minute, where n is the number of hops to have gotten up to the last one. The last node can either collect the payment and cover their cost, forward the payment, or cancel the payment releasing all the locked-up funds all the way back. Payments could have a grace period, which would prevent peers from lying about the time. This approach might also require a different protocol for HTLC forwarding, where Alice sends the HTLC onion packet to B, who decrypts it, makes sure it makes sense, and sends a half-signed updated channel state back to A. A accepts it and forwards the other half-signed channel update to B. This means 1.5 round-trips before Bob can really forward the HTLC on to Carol, but it is parallelizable, so Bob and Carol could start at (1) as soon as Alice/Bob has finished(2). If made to work, it doesn't require much crypto or bitcoin consensus changes, or even much deployment coordination.


Updated on: 2023-05-23T02:18:54.490257+00:00