--- Log opened Mon Oct 19 00:00:51 2020 00:17 -!- belcher [~belcher@unaffiliated/belcher] has joined #lightning-dev 00:24 -!- jonatack [~jon@2a01:e0a:53c:a200:bb54:3be5:c3d0:9ce5] has quit [Ping timeout: 272 seconds] 00:30 -!- jeremyrubin [~jr@c-73-15-215-148.hsd1.ca.comcast.net] has quit [Ping timeout: 256 seconds] 00:41 -!- Pavlenex [~Thunderbi@141.98.103.251] has joined #lightning-dev 01:00 -!- riclas [~riclas@77.7.37.188.rev.vodafone.pt] has joined #lightning-dev 01:01 -!- Pavlenex [~Thunderbi@141.98.103.251] has quit [Quit: Pavlenex] 01:03 -!- da39a3ee5e6b4b0d [~textual@n11211935170.netvigator.com] has joined #lightning-dev 01:03 -!- da39a3ee5e6b4b0d [~textual@n11211935170.netvigator.com] has quit [Client Quit] 01:08 -!- per [~per@gateway/tor-sasl/wsm] has joined #lightning-dev 01:14 -!- musdom [~Thunderbi@2001:f40:904:d841:84fb:6df3:c38d:f33] has quit [Quit: musdom] 01:15 -!- Pavlenex [~Thunderbi@141.98.103.251] has joined #lightning-dev 01:20 -!- mol [~mol@unaffiliated/molly] has joined #lightning-dev 01:22 -!- mol_ [~mol@unaffiliated/molly] has quit [Ping timeout: 265 seconds] 01:24 -!- sr_gi [~sr_gi@static-128-69-224-77.ipcom.comunitel.net] has quit [Read error: Connection reset by peer] 01:24 -!- sr_gi [~sr_gi@static-128-69-224-77.ipcom.comunitel.net] has joined #lightning-dev 01:26 -!- mol [~mol@unaffiliated/molly] has quit [Ping timeout: 260 seconds] 01:26 -!- __gotcha [~Thunderbi@plone/gotcha] has joined #lightning-dev 01:27 -!- jonatack [~jon@37.165.8.123] has joined #lightning-dev 01:32 -!- belcher_ [~belcher@unaffiliated/belcher] has joined #lightning-dev 01:32 -!- belcher [~belcher@unaffiliated/belcher] has quit [Read error: Connection reset by peer] 01:36 -!- opsec_x12 [~opsec_x12@44-25-143-49.ip.hamwan.net] has quit [Read error: Connection reset by peer] 01:36 -!- opsec_x12 [~opsec_x12@44-25-143-49.ip.hamwan.net] has joined #lightning-dev 01:37 -!- opsec_x12 [~opsec_x12@44-25-143-49.ip.hamwan.net] has quit [Read error: Connection reset by peer] 01:39 -!- opsec_x12 [~opsec_x12@44-25-143-49.ip.hamwan.net] has joined #lightning-dev 01:41 -!- opsec_x12 [~opsec_x12@44-25-143-49.ip.hamwan.net] has quit [Read error: Connection reset by peer] 01:41 -!- opsec_x12 [~opsec_x12@44-25-143-49.ip.hamwan.net] has joined #lightning-dev 02:17 -!- __gotcha1 [~Thunderbi@plone/gotcha] has joined #lightning-dev 02:18 -!- __gotcha [~Thunderbi@plone/gotcha] has quit [Ping timeout: 260 seconds] 02:18 -!- __gotcha1 is now known as __gotcha 02:29 -!- da39a3ee5e6b4b0d [~textual@n11211935170.netvigator.com] has joined #lightning-dev 03:01 -!- jonatack [~jon@37.165.8.123] has quit [Read error: Connection reset by peer] 03:07 -!- vasild_ [~vd@gateway/tor-sasl/vasild] has joined #lightning-dev 03:11 -!- vasild [~vd@gateway/tor-sasl/vasild] has quit [Ping timeout: 240 seconds] 03:11 -!- vasild_ is now known as vasild 03:15 -!- shesek [~shesek@unaffiliated/shesek] has quit [Remote host closed the connection] 03:25 -!- mol [~mol@unaffiliated/molly] has joined #lightning-dev 03:29 -!- mol [~mol@unaffiliated/molly] has quit [Read error: Connection reset by peer] 03:55 -!- mol [~mol@unaffiliated/molly] has joined #lightning-dev 03:57 -!- da39a3ee5e6b4b0d [~textual@n11211935170.netvigator.com] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…] 04:23 -!- da39a3ee5e6b4b0d [~textual@n11211935170.netvigator.com] has joined #lightning-dev 04:43 -!- dome [~e-mod@c-73-46-0-211.hsd1.fl.comcast.net] has joined #lightning-dev 04:44 -!- Pavlenex [~Thunderbi@141.98.103.251] has quit [Quit: Pavlenex] 04:51 -!- jonatack [~jon@2a01:e0a:53c:a200:bb54:3be5:c3d0:9ce5] has joined #lightning-dev 05:07 -!- da39a3ee5e6b4b0d [~textual@n11211935170.netvigator.com] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…] 05:07 -!- da39a3ee5e6b4b0d [~textual@n11211935170.netvigator.com] has joined #lightning-dev 05:08 -!- ghost43_ [~daer@gateway/tor-sasl/daer] has joined #lightning-dev 05:09 -!- ghost43 [~daer@gateway/tor-sasl/daer] has quit [Ping timeout: 240 seconds] 05:16 -!- DeanGuss [~dean@gateway/tor-sasl/deanguss] has quit [Ping timeout: 240 seconds] 05:28 -!- shesek [~shesek@164.90.217.137] has joined #lightning-dev 05:28 -!- shesek [~shesek@164.90.217.137] has quit [Changing host] 05:28 -!- shesek [~shesek@unaffiliated/shesek] has joined #lightning-dev 05:34 -!- sr_gi [~sr_gi@static-128-69-224-77.ipcom.comunitel.net] has quit [Read error: Connection reset by peer] 05:35 -!- sr_gi [~sr_gi@static-128-69-224-77.ipcom.comunitel.net] has joined #lightning-dev 05:59 -!- asoltys [~root@s207-81-214-2.bc.hsia.telus.net] has quit [Quit: Lost terminal] 06:12 -!- kloinka [~quassel@220.233.177.223] has quit [Read error: Connection reset by peer] 06:13 -!- kloinka [~quassel@223.177.233.220.static.exetel.com.au] has joined #lightning-dev 06:13 -!- kloinka_ [~quassel@223.177.233.220.static.exetel.com.au] has quit [Remote host closed the connection] 06:15 -!- kloinka_ [~quassel@223.177.233.220.static.exetel.com.au] has joined #lightning-dev 06:15 -!- dome [~e-mod@c-73-46-0-211.hsd1.fl.comcast.net] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…] 06:24 -!- dome [~e-mod@c-73-46-0-211.hsd1.fl.comcast.net] has joined #lightning-dev 06:31 -!- mol_ [~mol@unaffiliated/molly] has joined #lightning-dev 06:33 -!- mol [~mol@unaffiliated/molly] has quit [Ping timeout: 260 seconds] 06:43 -!- mol_ [~mol@unaffiliated/molly] has quit [Ping timeout: 265 seconds] 07:11 -!- kexkey [~kexkey@89.36.78.182] has joined #lightning-dev 07:13 -!- mol [~mol@unaffiliated/molly] has joined #lightning-dev 07:34 -!- mol_ [~mol@unaffiliated/molly] has joined #lightning-dev 07:37 -!- Pavlenex [~Thunderbi@141.98.103.251] has joined #lightning-dev 07:38 -!- mol [~mol@unaffiliated/molly] has quit [Ping timeout: 272 seconds] 07:55 -!- jonatack [~jon@2a01:e0a:53c:a200:bb54:3be5:c3d0:9ce5] has quit [Quit: jonatack] 08:00 -!- jonatack [~jon@213.152.161.35] has joined #lightning-dev 08:07 -!- da39a3ee5e6b4b0d [~textual@n11211935170.netvigator.com] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…] 08:20 -!- mrostecki [~mrostecki@gateway/tor-sasl/mrostecki] has joined #lightning-dev 08:43 -!- mol_ [~mol@unaffiliated/molly] has quit [Ping timeout: 272 seconds] 08:48 -!- dr-orlovsky [~dr-orlovs@31.14.40.19] has quit [Ping timeout: 256 seconds] 08:48 -!- dr_orlovsky [~dr-orlovs@31.14.40.19] has joined #lightning-dev 08:51 -!- Pavlenex [~Thunderbi@141.98.103.251] has quit [Quit: Pavlenex] 08:59 -!- mol [~mol@unaffiliated/molly] has joined #lightning-dev 09:03 -!- __gotcha [~Thunderbi@plone/gotcha] has quit [Read error: Connection reset by peer] 09:03 -!- __gotcha1 [~Thunderbi@plone/gotcha] has joined #lightning-dev 09:03 -!- mrostecki_ [~mrostecki@gateway/tor-sasl/mrostecki] has joined #lightning-dev 09:04 -!- mrostecki [~mrostecki@gateway/tor-sasl/mrostecki] has quit [Remote host closed the connection] 09:06 -!- __gotcha [~Thunderbi@plone/gotcha] has joined #lightning-dev 09:07 -!- __gotcha1 [~Thunderbi@plone/gotcha] has quit [Ping timeout: 265 seconds] 09:13 -!- DeanGuss [~dean@gateway/tor-sasl/deanguss] has joined #lightning-dev 09:15 -!- mrostecki_ is now known as mrostecki 09:26 -!- Pavlenex [~Thunderbi@141.98.103.251] has joined #lightning-dev 09:33 -!- mol [~mol@unaffiliated/molly] has quit [Ping timeout: 272 seconds] 09:45 -!- Pavlenex [~Thunderbi@141.98.103.251] has quit [Quit: Pavlenex] 09:53 -!- jeremyrubin [~jr@c-73-15-215-148.hsd1.ca.comcast.net] has joined #lightning-dev 09:53 -!- Pavlenex [~Thunderbi@141.98.103.251] has joined #lightning-dev 09:53 -!- Pavlenex [~Thunderbi@141.98.103.251] has quit [Client Quit] 10:28 -!- Pavlenex [~Thunderbi@141.98.103.251] has joined #lightning-dev 10:30 < ghost43_> does the lnd watchtower (or other production watchtower code) sweep HTLCs? 10:31 -!- mol [~mol@unaffiliated/molly] has joined #lightning-dev 10:32 < ghost43_> with option_anchor_outputs enabled, is it possible for a watchtower to sweep the output of an HTLC-Timeout/HTLC-Success tx? without sighash noinput I mean. The sighash flags seem problematic -- the txid of the HTLC-Timeout/HTLC-Success tx cannot be predicted, so I don't see how a penalty tx for it could be pre-signed. 10:45 < ghost43_> AFAICT looking at the lnd code, their watchtowers are not sweeping HTLCs 10:45 < ghost43_> so my question then is, has anyone thought about this not even being possible with anchor outputs? 10:51 -!- fiatjaf [~fiatjaf@2804:7f2:2a84:12c:ea40:f2ff:fe85:d2dc] has joined #lightning-dev 10:58 < ariard> ghost43_: you mean punishing HTLCs txn revoked outputs with pre-signed, delegated txn? Good point, I didn't think about this one 10:59 < ghost43_> yes, I mean reacting to an HTLC-Timeout/Success within the CSV 10:59 < ghost43_> as a watchtower, so without having the revocation key 11:01 < ghost43_> electrum currently has a watchtower implementation that also sweeps these outputs. I've just realised that I can't adapt it to anchor outputs however, as the client cannot create the signatures in advance anymore 11:02 < ghost43_> I guess as the lnd watchtower never implemented this 11:12 -!- Osso [~osso@2603-8080-6e0e-5765-0000-0000-0000-0563.res6.spectrum.com] has joined #lightning-dev 11:12 -!- Osso [~osso@2603-8080-6e0e-5765-0000-0000-0000-0563.res6.spectrum.com] has quit [Client Quit] 11:27 -!- luke-jr [~luke-jr@unaffiliated/luke-jr] has quit [Quit: ZNC - http://znc.sourceforge.net] 11:27 -!- luke-jr [~luke-jr@unaffiliated/luke-jr] has joined #lightning-dev 11:36 < ariard> you can still delegate the revocation key to the watchtower and let their adapt the justice tx 11:36 < ariard> though now you're trusting them to not burn the whole HTLC output whimsicallly 11:39 < ariard> I think you can provide pre-signed txn to your watchtower with a secondary input ANYONECANPAY 11:40 < ariard> committing to the justice tx output, like a kind of chaperon signature ? 11:42 < ariard> nah doesn't work a watchtower can do whatever they want with knowledge of the revocation key, sigh 11:46 < ghost43_> right, you cannot give out the key 11:52 -!- mol [~mol@unaffiliated/molly] has quit [Ping timeout: 256 seconds] 12:00 -!- vtnerd [~vtnerd@50-81-138-206.client.mchsi.com] has quit [Ping timeout: 272 seconds] 12:01 -!- vtnerd [~vtnerd@50-81-138-206.client.mchsi.com] has joined #lightning-dev 12:13 -!- fiatjaf [~fiatjaf@2804:7f2:2a84:12c:ea40:f2ff:fe85:d2dc] has quit [Ping timeout: 272 seconds] 12:28 -!- th0th [~th0th@gateway/tor-sasl/th0th] has joined #lightning-dev 12:46 <+roasbeef> ghost43_: it's possible as is now, it just ends up being a slight bit more state, since you send sigs for all the htlcs in each state as well 12:46 <+roasbeef> you also need to send sigs for both the first and secodn level revocation clauses as well 12:46 < ghost43_> but how do you send sigs for the second level output? 12:46 <+roasbeef> idea behind our limited impl, is that chans should be set s.t you can never have a very largre amount outsanding in htlcs anyway 12:46 < ghost43_> you can't predict the txid 12:46 <+roasbeef> we're looking at picking tower stuff up soon again here 12:47 <+roasbeef> what do you mean? it's all stable 12:47 <+roasbeef> something something segwit 12:47 <+roasbeef> or you mean if they attach extra inputs+outputs to it? 12:47 <+roasbeef> post anchors? 12:47 < ghost43_> yes post anchors 12:47 < ghost43_> "if option_anchor_outputs applies to this commitment transaction, SIGHASH_SINGLE|SIGHASH_ANYONECANPAY is used" 12:48 < ghost43_> you can't predict the txid for HTLC-Timeout and HTLC-Success txs 12:49 < ghost43_> I know it is possible pre-option_anchor_outputs as I had implemented it a while back 12:49 < ghost43_> you would need sighash_noinput I suppose 12:49 <+roasbeef> it really wants no input, but in absence of that same thing above about limiting the total amt in htlcs, which is recommended for a buncha other reasons as well 12:50 <+roasbeef> interative protocols are ofc also possible but that assumes a slighlty diff set up 12:50 < ghost43_> even with noinput note that the second stage outputs reuse addresses 12:50 < ghost43_> so care must be taken 12:51 <+roasbeef> only within a particular channels' context tho 12:51 <+roasbeef> and when something like this happens, that channel is gone 12:54 < ghost43_> idk, it greatly limits the utility of the channel if only a small part of it can be used for htlcs at any given time 12:54 <+roasbeef> not really 12:54 <+roasbeef> do you really want 90% your channel suspended in htlcs? 12:54 < ghost43_> if the user has a 500 usd channel, they expect to be able to buy a 200 usd product 12:55 <+roasbeef> they can if they want to, there're just tradeoffs involved 12:55 <+roasbeef> that user prob also isn't really concerned about some breach depending on who they have chans w/ as well 12:56 < ghost43_> so now users should only open channels with trusted parties? 12:56 <+roasbeef> nope that's not what I'm saying 12:56 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has joined #lightning-dev 12:56 <+roasbeef> I just mean we write a bunch of deterrence code, which is rarely ever executed 12:57 <+roasbeef> and some targets are more high risk than others 12:57 <+roasbeef> very conservative users can set higher csv values as well, but ofc there're treadeoffs there too 12:57 <+roasbeef> you could say ok if my phone blows up, I assume I can get another one within 1 month 12:58 <+roasbeef> but also it's a mobile hot wallet usually, so you generally should just treat it was funds in your wallet (minimal) 12:58 < ghost43_> in any case, my point is that this is a regression in option_anchor_outputs 12:58 <+roasbeef> it's a tradeoff, it makes other trade offs as well 12:58 <+roasbeef> w/o anchors, the user may never be able to even get a commitment transaction confirmed in the chain aassuming they low balled too much on fee estimation 12:59 < ghost43_> sure, tradeoffs are fine. but has it been pointed out before in public? I know I have not read about it. 13:00 <+roasbeef> yeh pretty sure on the ML, but also most ppl these days just run their own towers, and fwiw even many mobile apps don't have one hooked up 13:00 <+roasbeef> I guess it's also one of those things that's "clear" if you know how things work 13:01 <+roasbeef> also in your example above, the channel peer is what limits the user's ability to have N outsanding htlcs or K total in sats 13:01 <+roasbeef> so a user could even just open up a channel like that and not know it, if their software doesn't enforce certain defaults or desired params 13:02 < ghost43_> yes fine, it was just an example. we could switch the direction and have them get paid instead :) 13:03 < ghost43_> so what is the default for max_htlc_value_in_flight_msat in lnd, in relation to the capacity? 13:07 < ghost43_> https://github.com/lightningnetwork/lnd/blob/10a84f2c75c9de958c9dd07de830f0546a43d05a/server.go#L1155-L1160 13:07 < ghost43_> so is it 100% ? 13:08 < ghost43_> because then the utility of the watchtower that cannot handle an htlc during breach is questionable. 13:18 -!- Pavlenex1 [~Thunderbi@141.98.103.251] has joined #lightning-dev 13:19 -!- Pavlenex [~Thunderbi@141.98.103.251] has quit [Ping timeout: 260 seconds] 13:19 -!- Pavlenex1 is now known as Pavlenex 13:42 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has quit [Ping timeout: 260 seconds] 13:50 -!- mol [~mol@unaffiliated/molly] has joined #lightning-dev 13:55 -!- sr_gi [~sr_gi@static-128-69-224-77.ipcom.comunitel.net] has quit [Read error: Connection reset by peer] 13:56 -!- sr_gi [~sr_gi@static-128-69-224-77.ipcom.comunitel.net] has joined #lightning-dev 14:25 -!- th0th [~th0th@gateway/tor-sasl/th0th] has quit [Remote host closed the connection] 14:28 -!- th0th [~th0th@gateway/tor-sasl/th0th] has joined #lightning-dev 14:33 -!- Pavlenex [~Thunderbi@141.98.103.251] has quit [Quit: Pavlenex] 14:42 -!- kexkey [~kexkey@89.36.78.182] has quit [Ping timeout: 260 seconds] 14:50 -!- arij [uid225068@gateway/web/irccloud.com/x-bvdzsowdvxygqhtj] has quit [Quit: Connection closed for inactivity] 15:07 -!- vasild_ [~vd@gateway/tor-sasl/vasild] has joined #lightning-dev 15:11 -!- vasild [~vd@gateway/tor-sasl/vasild] has quit [Ping timeout: 240 seconds] 15:11 -!- vasild_ is now known as vasild 15:21 -!- afk11` is now known as afk11 15:22 -!- mrostecki [~mrostecki@gateway/tor-sasl/mrostecki] has quit [Remote host closed the connection] 16:01 <+roasbeef> ghost43_: no, it's based on the excess after the reserve is calc'd, also not that tere're two values the max oustanding and the number of htlcs 16:01 <+roasbeef> my comment above was just meant to demonstrate that during the funding process, it's the other party that decides how much of the available bandwidth you can use on their commitments 16:03 <+roasbeef> ghost43_: it's a tradeoff at the end of the day, as really its your chanenl peer that controls how much of the channel you can actually use, they could send you a 60% reserve if they wanted and your software would need to either detect or handle that 16:06 <+roasbeef> also in teh routed setting, payments need to mind the max_htlc value as well, and assuming widespread-ish mpp support htlcs may start to tend on the smaller side as a result 16:06 <+roasbeef> you as a routing node also likely don't want to let a random htlc take 90% of your payment bandwidth as well due to the opportunity cost 16:09 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has joined #lightning-dev 16:52 -!- riclas [~riclas@77.7.37.188.rev.vodafone.pt] has quit [Ping timeout: 272 seconds] 17:14 -!- da39a3ee5e6b4b0d [~textual@n11211935170.netvigator.com] has joined #lightning-dev 17:42 -!- da39a3ee5e6b4b0d [~textual@n11211935170.netvigator.com] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…] 17:56 -!- mol_ [~mol@unaffiliated/molly] has joined #lightning-dev 17:59 -!- mol [~mol@unaffiliated/molly] has quit [Ping timeout: 260 seconds] 17:59 -!- mol [~mol@unaffiliated/molly] has joined #lightning-dev 18:00 -!- arij [uid225068@gateway/web/irccloud.com/x-wvbfpqdvmknbjwyy] has joined #lightning-dev 18:04 -!- mol_ [~mol@unaffiliated/molly] has quit [Ping timeout: 256 seconds] 18:05 -!- sr_gi [~sr_gi@static-128-69-224-77.ipcom.comunitel.net] has quit [Read error: Connection reset by peer] 18:06 -!- sr_gi [~sr_gi@static-128-69-224-77.ipcom.comunitel.net] has joined #lightning-dev 18:08 -!- willcl_ark [~quassel@cpc123762-trow7-2-0-cust7.18-1.cable.virginm.net] has quit [Quit: No Ping reply in 210 seconds.] 18:10 -!- willcl_ark [~quassel@cpc123762-trow7-2-0-cust7.18-1.cable.virginm.net] has joined #lightning-dev 18:31 -!- bitromortac [~admin@gateway/tor-sasl/bitromortac] has joined #lightning-dev 18:32 -!- bitromortac_ [~admin@gateway/tor-sasl/bitromortac] has quit [Ping timeout: 240 seconds] 19:33 -!- cryptosoap [~cryptosoa@gateway/tor-sasl/cryptosoap] has quit [Ping timeout: 240 seconds] 19:33 -!- cryptoso- [~cryptosoa@gateway/tor-sasl/cryptosoap] has joined #lightning-dev 20:05 -!- per [~per@gateway/tor-sasl/wsm] has quit [Ping timeout: 240 seconds] 20:12 -!- per [~per@gateway/tor-sasl/wsm] has joined #lightning-dev 21:35 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has quit [Quit: Leaving.] 21:39 -!- jb55 [~jb55@gateway/tor-sasl/jb55] has quit [Remote host closed the connection] 21:40 -!- jb55 [~jb55@gateway/tor-sasl/jb55] has joined #lightning-dev 22:15 -!- sr_gi [~sr_gi@static-128-69-224-77.ipcom.comunitel.net] has quit [Read error: Connection reset by peer] 22:16 -!- sr_gi [~sr_gi@static-128-69-224-77.ipcom.comunitel.net] has joined #lightning-dev 22:16 -!- da39a3ee5e6b4b0d [~textual@n11211935170.netvigator.com] has joined #lightning-dev 22:28 -!- jonatack [~jon@213.152.161.35] has quit [Ping timeout: 246 seconds] 22:59 -!- jonatack [~jon@213.152.162.10] has joined #lightning-dev 23:05 -!- th0th [~th0th@gateway/tor-sasl/th0th] has quit [Remote host closed the connection] 23:06 -!- gribble [~gribble@unaffiliated/nanotube/bot/gribble] has quit [Remote host closed the connection] 23:08 -!- gribble [~gribble@unaffiliated/nanotube/bot/gribble] has joined #lightning-dev 23:30 -!- JD2983 [~jarret@S01069050cacf3d53.ed.shawcable.net] has joined #lightning-dev 23:31 -!- nsh [~lol@wikipedia/nsh] has quit [Quit: ZNC - http://znc.in] 23:32 -!- JD2983_ [~jarret@S01069050cacf3d53.ed.shawcable.net] has quit [Ping timeout: 264 seconds] 23:44 -!- nsh [~lol@wikipedia/nsh] has joined #lightning-dev 23:49 -!- Pavlenex [~Thunderbi@141.98.103.251] has joined #lightning-dev --- Log closed Tue Oct 20 00:00:52 2020