Re: [Lightning-dev] Liquidity Ads and griefing subtleties

2023-12-08 Thread Bastien TEINTURIER
d amount is 2 units but the total channel >> capacity is 12 units: >> >> >> >> * Bob owns 0 units: no Bob outputs >> >> * Bob owns 1 unit: Bob has a CLTV-encumbered output of 1 unit >> >> * Bob owns 2 units: Bob has a CLTV-encumbered output of 2 unit

Re: [Lightning-dev] Liquidity Ads and griefing subtleties

2023-12-02 Thread Matt Morehouse
On Fri, Dec 1, 2023 at 5:47 PM Bastien TEINTURIER wrote: > > If Alice pays for a 10 000 sats lease, we only want those 10 000 sats > to be encumbered with a CLTV. But this is actually not enforceable. We > could create a separate output in the commitment transaction with the > lea

[Lightning-dev] Liquidity Ads and griefing subtleties

2023-12-01 Thread Bastien TEINTURIER
Good morning list, I've been thinking a lot about liquidity ads recently, and I want to highlight some subtleties that should be taken into account in the protocol design. This is a rather long post, but I believe this is important to make sure we get it right and strike the right balance be

Re: [Lightning-dev] Liquidity Ads and griefing subtleties

2023-12-08 Thread Bastien TEINTURIER
t of 2 units > >> * Bob owns 3 units (assuming 1 unit is above dust limit): Bob has: > >> * A CLTV-encumbered output of 2 units > >> * An ordinary output of 1 unit > >> * etc. > >> > >> This locks up only the agreed-upon amount but lets Bob keep an

Re: [Lightning-dev] Liquidity Ads and griefing subtleties

2023-12-11 Thread Bastien TEINTURIER
eased_owed` buckets, > one > >>> > per lease. How do we order them, to decide from which bucket we take > >>> > funds first? I think the option that makes the most sense is to order > >>> > them by lease expiry (not by lease start or lease amount, which could >

Re: [Lightning-dev] Liquidity Ads and griefing subtleties

2023-12-10 Thread Matt Morehouse
he total Bob-owned amount, with a CLTV on up to >>> >> the amount that was purchased and the rest (if above dust limit) without >>> >> a CLTV?" >>> >> >>> >> so e.g. if the purchased amount is 2 units but the total channel >>

Re: [Lightning-dev] Liquidity Ads and griefing subtleties

2023-12-14 Thread Bastien TEINTURIER
matching the lease > >>>> >>> > - if `to_local` is greater than dust, create a corresponding > output > >>>> >>> > without any CLTV lease > >>>> >>> > >>>> >>> Neat idea. This cha

Re: [Lightning-dev] Liquidity Ads and griefing subtleties

2023-12-12 Thread Keagan McClelland
or one week >> >>> > >> >>> > We thus have three concurrent leases, with overlapping lease >> durations. >> >>> > That's costly for the channel initiator, because we must add three >> new >> >>> > outputs to the co

Re: [Lightning-dev] Liquidity Ads and griefing subtleties

2023-12-04 Thread Bastien TEINTURIER
ly my original idea as then any funds Alice wants > to add would be in a separate, unencumbered channel. > > Regards, > ZmnSCPxj > > > Sent with Proton Mail secure email. > > On Friday, December 1st, 2023 at 5:45 PM, Bastien TEINTURIER < > [email protected]> wrote: > &g

Re: [Lightning-dev] Liquidity Ads and griefing subtleties

2023-12-13 Thread Bastien TEINTURIER
;> >>> > the `update_fulfill_htlc` updates before the `update_fail_htlc` >>> ones, >>> >>> > because we need to start by updating `to_local_leased_owed`. I >>> believe >>> >>> > that works, but it needs more analysis. Please tr

Re: [Lightning-dev] Liquidity Ads and griefing subtleties

2023-12-02 Thread ZmnSCPxj via Lightning-dev
lice wants to add would be in a separate, unencumbered channel. Regards, ZmnSCPxj Sent with Proton Mail secure email. On Friday, December 1st, 2023 at 5:45 PM, Bastien TEINTURIER wrote: > Good morning list, > > I've been thinking a lot about liquidity ads recently, and I

Re: [Lightning-dev] Liquidity Ads and griefing subtleties

2023-12-07 Thread Matt Morehouse
> >> This locks up only the agreed-upon amount but lets Bob keep any amount above >> the rest. >> >> Alternately, only allow CLTV-locking if the buyer is not providing its own >> funds (i.e. pure inbound purchase). >> This is still effectively my original ide

Re: [Lightning-dev] Liquidity Ads and griefing subtleties

2023-12-14 Thread Matt Morehouse
gt;>> >>> The question then is really: do operators want to buy/sell X sats of >>>> >>> inbound flow or Y days of an open channel with an initial inbound >>>> >>> balance of X sats? >>>> >>> >>>> >