--- Log opened Sat Jul 29 00:00:13 2023 00:31 -!- ShotokanZH [~ShotokanZ@zh.aitch.me] has quit [Ping timeout: 250 seconds] 00:40 -!- test_ [flooded@gateway/vpn/protonvpn/flood/x-43489060] has joined #lightning-dev 00:43 -!- ShotokanZH [~ShotokanZ@zh.aitch.me] has joined #lightning-dev 00:43 -!- flooded [flooded@gateway/vpn/protonvpn/flood/x-43489060] has quit [Ping timeout: 244 seconds] 01:00 -!- riclas [~riclas@26.27.71.148.rev.vodafone.pt] has joined #lightning-dev 01:06 -!- riclas [~riclas@26.27.71.148.rev.vodafone.pt] has quit [Ping timeout: 258 seconds] 01:13 -!- jon_atack [~jonatack@user/jonatack] has quit [Ping timeout: 245 seconds] 02:00 -!- warmhug [~warmhug@gateway/tor-sasl/warmhug] has quit [Remote host closed the connection] 02:01 -!- warmhug [~warmhug@gateway/tor-sasl/warmhug] has joined #lightning-dev 03:35 -!- AaronvanW [~AaronvanW@user/AaronvanW] has quit [Quit: Leaving...] 03:49 -!- flooded [flooded@gateway/vpn/protonvpn/flood/x-43489060] has joined #lightning-dev 03:53 -!- test_ [flooded@gateway/vpn/protonvpn/flood/x-43489060] has quit [Ping timeout: 245 seconds] 04:54 -!- riclas [~riclas@26.27.71.148.rev.vodafone.pt] has joined #lightning-dev 05:02 -!- AaronvanW [~AaronvanW@user/AaronvanW] has joined #lightning-dev 05:15 -!- warmhug [~warmhug@gateway/tor-sasl/warmhug] has quit [Read error: Connection reset by peer] 05:16 -!- warmhug [~warmhug@gateway/tor-sasl/warmhug] has joined #lightning-dev 05:28 -!- AaronvanW [~AaronvanW@user/AaronvanW] has quit [Remote host closed the connection] 05:34 -!- jon_atack [~jonatack@user/jonatack] has joined #lightning-dev 05:59 -!- AaronvanW [~AaronvanW@user/AaronvanW] has joined #lightning-dev 06:24 -!- darosior [~darosior@109.205.214.46] has joined #lightning-dev 06:26 -!- darosior [~darosior@109.205.214.46] has quit [Client Quit] 06:28 -!- darosior [~darosior@109.205.214.46] has joined #lightning-dev 06:32 -!- AaronvanW [~AaronvanW@user/AaronvanW] has quit [Ping timeout: 246 seconds] 07:02 -!- AaronvanW [~AaronvanW@user/AaronvanW] has joined #lightning-dev 07:19 -!- warmhug [~warmhug@gateway/tor-sasl/warmhug] has quit [Remote host closed the connection] 07:20 -!- warmhug [~warmhug@gateway/tor-sasl/warmhug] has joined #lightning-dev 09:36 < harding> _aj_: are the upfront commitment fee + reverse hold fees in https://lists.linuxfoundation.org/pipermail/lightning-dev/2023-July/004020.html basically the same as the reverse hold fees in https://lists.linuxfoundation.org/pipermail/lightning-dev/2020-February/002548.html plus the upfront fee mentioned later in the thread at https://lists.linuxfoundation.org/pipermail/lightning-dev/2020-February/002561.html ? 09:50 -!- jarthur [~jarthur@user/jarthur] has joined #lightning-dev 10:01 < harding> I think the forward commitment fee needs to be proportional to the transfered amount, otherwise Mallory can cancel just before the reverse hold fee goes into effect to earn money on a transfer that's sufficiently high value. For example, if the forward commitment fee is 1 msat across all hops and Mallory pays Mallory through 20 intermediaries (incurring a 20 msat fee) but Mallory sends an amount large enough that the reverse hold fee is 21 msat 10:01 < harding> to her spending node, she can become well connected to miners and have her receiving node cancel the HTLC immediately after she sees a block but before the receiving node's counterparty sees the block, leaving that counterparty (not Mallory) on the hook for a fee. The fee propagates backwards until Mallory's sending node receives more reverse hold fee than it spent on forward commitment fees. If the forward fee is equal to or greater than, say, 10:01 < harding> three blocks of reverse hold fees (or however many blocks we believe is the maximum Mallory could ever learn about before the rest of the network learns about them), then she shouldn't be able to profit. (Note, what I've described obviously arises from the concerns stated by rusty in the 2020 thread.) 10:13 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Ping timeout: 240 seconds] 10:13 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #lightning-dev 10:22 < harding> For a $1,000 payment and 10 ppa to each of 20 hops, that implies a minimum upfront commitment fee of about 0.11. If you redundantly overpay or have many paths fail, I'd guess that could reasonably go up to about $0.50, or about the same as the 0.05% success fees you recent post says Phoenix requires as a minimum. 10:23 < harding> 1000 * 0.1 * (30 / 60 / 24 / 365) * 20 10:38 < harding> Having thought about this for a bit, I think rusty's criticism about time on the 2020 thread and the comments in the meeting notes about not having a universal time source are a compelling argument against what is otherwise one of my favorite schemes (because it both prevents jamming and also adds an economic function to invoice holding). Even the block chain doesn't seem to provide a universal clock here, as I understand the proposal, given that 10:38 < harding> different nodes will receive new blocks at different times. If the scheme is implemented (as I understand it), there will naturally be times when HTLCs are being cancelled or settled simultaneously with blocks propagating across the network and the reverse hold fees from a downstream hop (closer to the receiver/canceller) will see fewer ticks of the block than upstream hops, potentially leading to someone who is not responsible for delaying the 10:38 < harding> HTLC having to pay more reverse commitment fees than they received. Higher upfront commitment fees can compensate for that, but only AFAICT by making payments significantly more expensive. 10:52 -!- jespada [~jespada@cpc121308-nmal25-2-0-cust15.19-2.cable.virginm.net] has quit [Ping timeout: 245 seconds] 11:45 -!- AaronvanW [~AaronvanW@user/AaronvanW] has quit [Quit: Leaving...] 11:55 -!- b_101 [~robert@189.236.37.53] has joined #lightning-dev 11:58 -!- b_101_ [~robert@static-198-54-129-102.cust.tzulo.com] has quit [Ping timeout: 264 seconds] 12:26 -!- b_101_ [~robert@static-198-54-129-102.cust.tzulo.com] has joined #lightning-dev 12:28 -!- b_101 [~robert@189.236.37.53] has quit [Ping timeout: 246 seconds] 12:33 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 12:33 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #lightning-dev 13:09 -!- jespada [~jespada@cpc121308-nmal25-2-0-cust15.19-2.cable.virginm.net] has joined #lightning-dev 13:16 -!- b_101 [~robert@189.236.37.53] has joined #lightning-dev 13:17 -!- test_ [flooded@gateway/vpn/protonvpn/flood/x-43489060] has joined #lightning-dev 13:19 -!- b_101_ [~robert@static-198-54-129-102.cust.tzulo.com] has quit [Ping timeout: 264 seconds] 13:20 -!- flooded [flooded@gateway/vpn/protonvpn/flood/x-43489060] has quit [Ping timeout: 246 seconds] 13:46 -!- b_101_ [~robert@static-198-54-129-102.cust.tzulo.com] has joined #lightning-dev 13:48 -!- b_101 [~robert@189.236.37.53] has quit [Ping timeout: 244 seconds] 14:07 -!- AaronvanW [~AaronvanW@user/AaronvanW] has joined #lightning-dev 15:01 -!- warmhug [~warmhug@gateway/tor-sasl/warmhug] has quit [Remote host closed the connection] 15:18 -!- warmhug [~warmhug@gateway/tor-sasl/warmhug] has joined #lightning-dev 15:58 -!- bitdex [~bitdex@gateway/tor-sasl/bitdex] has joined #lightning-dev 16:47 -!- AaronvanW [~AaronvanW@user/AaronvanW] has quit [Remote host closed the connection] 16:58 -!- warmhug [~warmhug@gateway/tor-sasl/warmhug] has quit [Remote host closed the connection] 16:58 -!- warmhug [~warmhug@gateway/tor-sasl/warmhug] has joined #lightning-dev 17:11 -!- warmhug [~warmhug@gateway/tor-sasl/warmhug] has quit [Remote host closed the connection] 17:12 -!- warmhug [~warmhug@gateway/tor-sasl/warmhug] has joined #lightning-dev 17:17 -!- AaronvanW [~AaronvanW@user/AaronvanW] has joined #lightning-dev 17:39 -!- jonatack1 [~jonatack@user/jonatack] has joined #lightning-dev 17:41 -!- jonatack2 [~jonatack@user/jonatack] has joined #lightning-dev 17:42 -!- jon_atack [~jonatack@user/jonatack] has quit [Ping timeout: 244 seconds] 17:44 -!- jonatack1 [~jonatack@user/jonatack] has quit [Ping timeout: 245 seconds] 17:51 -!- AaronvanW [~AaronvanW@user/AaronvanW] has quit [Ping timeout: 260 seconds] 19:35 -!- flooded [flooded@gateway/vpn/protonvpn/flood/x-43489060] has joined #lightning-dev 19:39 -!- test_ [flooded@gateway/vpn/protonvpn/flood/x-43489060] has quit [Ping timeout: 244 seconds] 19:49 -!- AaronvanW [~AaronvanW@user/AaronvanW] has joined #lightning-dev 20:21 -!- AaronvanW [~AaronvanW@user/AaronvanW] has quit [Ping timeout: 244 seconds] 20:30 -!- whysthatso125070 [~whysthats@74-206-50-195.sta.estpak.ee] has quit [Read error: Connection reset by peer] 20:32 -!- whysthatso125070 [~whysthats@74-206-50-195.sta.estpak.ee] has joined #lightning-dev 21:29 -!- jarthur [~jarthur@user/jarthur] has quit [Quit: jarthur] 22:19 -!- AaronvanW [~AaronvanW@user/AaronvanW] has joined #lightning-dev 22:44 -!- test_ [flooded@gateway/vpn/protonvpn/flood/x-43489060] has joined #lightning-dev 22:48 -!- flooded [flooded@gateway/vpn/protonvpn/flood/x-43489060] has quit [Ping timeout: 245 seconds] 22:51 -!- AaronvanW [~AaronvanW@user/AaronvanW] has quit [Ping timeout: 246 seconds] 23:02 < _aj_> harding: haha, you found the thread that "an email about this sitting in my drafts for a few years now" was referring to 23:17 < _aj_> in my recent email, the "upfront commitment fee" is just paying for bandwidth, so is extremely trivial for payments, and can be treated as 0 here i think. so the attack is just setup a route "M1 -> A -> M2" with M1 claiming a large hold fee, and M2 holding on to the HTLC long enough to trigger A to pay M1, but not long enough for M2 to pay A. I think it's probably solvable. you could probably just 23:17 < _aj_> count down the blocks, even? A->B->C->D -- B pays A every block if the HTLC is still open at block 20, C pays B every block if it's still open after block 17, D pays C if it's still open after block 15? 23:21 < _aj_> we're talking 12msat per hop per block for a $20 payment at 10% pa interest or 1msat per hop per block at 1% pa interest; feels like there's a lot of scope to just ignore small errors 23:34 -!- AaronvanW [~AaronvanW@user/AaronvanW] has joined #lightning-dev --- Log closed Sun Jul 30 00:00:14 2023