lightning-dev
Liquidity Ads and griefing subtleties
Posted on: December 8, 2023 22:31 UTC
The communication emphasizes a simplified bookkeeping method for managing leased amounts in commitment transactions.
Instead of using counters, the proposal suggests encumbering the seller's first portion of sats with CLTV (Check Lock Time Verify) until the leased amount is reached. To illustrate this, the discussion provides an example where Alice leases 10k sats from Bob, and they both contribute an equal amount to balance the channel.
In their initial commitment transaction, both Alice and Bob start with 10k sats each, but Bob's share is encumbered by the CLTV. When Bob sends a 2k sats HTLC (Hash Time Locked Contract) to Alice, his encumbered balance decreases to 8k sats while the HTLC value is temporarily held at 2k sats. Upon fulfillment of HTLC1, Alice's balance increases to 12k sats, while Bob remains at 8k sats encumbered. Further transactions follow this pattern where Alice sends a 4k sats HTLC to Bob, which upon fulfillment, results in any of Bob's balance over the initial 10k sats being unencumbered.
As the transactions continue, the email details how HTLCs offered by Bob are always deducted from his unencumbered output first, keeping the encumbered output intact until it dips below the leased amount threshold. In the event that multiple HTLCs are active, some may be fulfilled while others fail, affecting the encumbrance of Bob's sats accordingly. The key takeaway is that Alice cannot lock up more than 10k sats on Bob's side, as that is the maximum lease amount agreed upon.
The correspondence also addresses potential strategies Bob might employ, such as circular routing or force closing with outstanding HTLCs, as ways to access liquidity early. These tactics are acknowledged as common across other proposals, highlighting the necessity of limiting the value of HTLCs in flight to mitigate associated risks.