--- Log opened Sat Jun 20 00:00:55 2020 00:25 -!- Victorsueca [~Victorsue@unaffiliated/victorsueca] has joined #c-lightning 00:26 -!- jb551 [~jb55@gateway/tor-sasl/jb55] has joined #c-lightning 00:26 -!- jb55 [~jb55@gateway/tor-sasl/jb55] has quit [Ping timeout: 240 seconds] 00:37 -!- justanotheruser [~justanoth@unaffiliated/justanotheruser] has quit [Ping timeout: 244 seconds] 00:39 -!- justanotheruser [~justanoth@unaffiliated/justanotheruser] has joined #c-lightning 01:06 -!- jonatack [~jon@2a01:e0a:53c:a200:bb54:3be5:c3d0:9ce5] has quit [Ping timeout: 272 seconds] 01:35 -!- dr-orlovsky [~dr-orlovs@xdsl-188-154-186-21.adslplus.ch] has joined #c-lightning 01:46 -!- jonatack [~jon@213.152.161.133] has joined #c-lightning 01:59 -!- jonatack [~jon@213.152.161.133] has quit [Quit: jonatack] 02:04 -!- jonatack [~jon@192.113.14.109.rev.sfr.net] has joined #c-lightning 02:06 -!- dr-orlovsky [~dr-orlovs@xdsl-188-154-186-21.adslplus.ch] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…] 02:13 -!- dr-orlovsky [~dr-orlovs@xdsl-188-154-186-21.adslplus.ch] has joined #c-lightning 03:06 -!- jonatack [~jon@192.113.14.109.rev.sfr.net] has quit [Ping timeout: 256 seconds] 03:36 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-txhnryyccoeyadae] has left #c-lightning [] 03:36 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-txhnryyccoeyadae] has joined #c-lightning 03:37 -!- queip [~queip@unaffiliated/rezurus] has joined #c-lightning 03:57 -!- zmnscpxj [~zmnscpxj@gateway/tor-sasl/zmnscpxj] has quit [Remote host closed the connection] 03:57 -!- zmnscpxj [~zmnscpxj@gateway/tor-sasl/zmnscpxj] has joined #c-lightning 04:44 -!- dr-orlovsky [~dr-orlovs@xdsl-188-154-186-21.adslplus.ch] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…] 04:47 -!- k3tan [~pi@unaffiliated/k3tan] has quit [Quit: WeeChat 2.7.1] 04:48 -!- k3tan [~pi@unaffiliated/k3tan] has joined #c-lightning 04:50 <@cdecker> devrandom: well, it's a design question. I think if we start prototyping the external shim that adds and strips the context blob for each invocation we can make separate progress and then reconvene once we collected some experience and port it into the hsmd interface directly. 04:52 <@cdecker> I think with the context blob idea we can accommodate any hsm, whether it can store arbitrary data (in which case it'd just return an empty blob) or be very resource constrained (in which case we externalize most of the state, apart from the counter) 04:54 -!- dr-orlovsky [~dr-orlovs@xdsl-188-154-186-21.adslplus.ch] has joined #c-lightning 04:54 <@cdecker> In addition, if we have separate context for subdaemons (lightningd, gossipd, and each channeld/closingd/onchaind) we can keep the context size smaller and allow concurrent access to the hsm's signing capabilities 04:56 <@cdecker> Each channel has a separate base secret as it is already, so the context blob would be restricted to sign with that key (which we already do with the current hsmd, where each channeld is restricted to a given channel, and all secrets are implicitly based off of the DB ID and the peer_id of that channel) 04:57 <@cdecker> TL;DR: let's try to come up with an experimental setup that uses a proxy to talk to the actual physical HSM and manages the blobs, and defer changes to the interprocess protocol until we have a good grasp of what the tradeoffs are 05:15 -!- k3tan [~pi@unaffiliated/k3tan] has quit [Quit: WeeChat 2.7.1] 05:31 -!- k3tan [~pi@unaffiliated/k3tan] has joined #c-lightning 05:51 -!- dr-orlovsky [~dr-orlovs@xdsl-188-154-186-21.adslplus.ch] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…] 05:58 -!- dr-orlovsky [~dr-orlovs@xdsl-188-154-186-21.adslplus.ch] has joined #c-lightning 06:13 -!- jonatack [~jon@134.19.179.235] has joined #c-lightning 06:40 -!- belcher [~belcher@unaffiliated/belcher] has joined #c-lightning 07:22 -!- jonatack [~jon@134.19.179.235] has quit [Ping timeout: 258 seconds] 07:33 -!- zmnscpxj [~zmnscpxj@gateway/tor-sasl/zmnscpxj] has quit [Ping timeout: 240 seconds] 07:55 -!- vasild [~vd@gateway/tor-sasl/vasild] has quit [Remote host closed the connection] 07:56 -!- vasild [~vd@gateway/tor-sasl/vasild] has joined #c-lightning 07:59 -!- zmnscpxj [~zmnscpxj@gateway/tor-sasl/zmnscpxj] has joined #c-lightning 08:20 -!- jonatack [~jon@2a01:e0a:53c:a200:bb54:3be5:c3d0:9ce5] has joined #c-lightning 08:23 -!- dr-orlovsky [~dr-orlovs@xdsl-188-154-186-21.adslplus.ch] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…] 08:36 -!- dr-orlovsky [~dr-orlovs@xdsl-188-154-186-21.adslplus.ch] has joined #c-lightning 09:23 -!- vasild [~vd@gateway/tor-sasl/vasild] has quit [Ping timeout: 240 seconds] 09:31 -!- vasild [~vd@gateway/tor-sasl/vasild] has joined #c-lightning 09:37 -!- bitdex [~bitdex@gateway/tor-sasl/bitdex] has quit [Quit: = ""] 11:49 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-txhnryyccoeyadae] has left #c-lightning [] 11:50 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-txhnryyccoeyadae] has joined #c-lightning 12:58 -!- dr-orlovsky [~dr-orlovs@xdsl-188-154-186-21.adslplus.ch] has quit [Remote host closed the connection] 13:12 < ksedgwic> struct and add a field to the db. The db part looks fine. 13:14 < ksedgwic> I surveyed looking to add a hsm_channel_state blob to the channel 13:15 < ksedgwic> struct and add a field to the db. The db part looks fine. 13:15 < ksedgwic> Many of the calls to hsmd are from lightningd and all have access to 13:15 < ksedgwic> the live channel struct. 13:16 < ksedgwic> Some of the calls are from daemons which do not have a live channel struct. Some of these can have the hsm_channel_state passed to them by lightningd and the updated blob can be returned. 13:16 -!- dr-orlovsky [~dr-orlovs@xdsl-188-154-186-21.adslplus.ch] has joined #c-lightning 13:16 < ksedgwic> But a few seem difficult (eg penalty_tx_create). There is no obvious way to get the current hsm_channel_state from that context. 13:17 < ksedgwic> What is the right approach? Would it be better to add persistence directly to hsmd? 13:18 < ksedgwic> Or and a request to lightningd so it can vend the current hsm_channel_state to the other deamons? 13:55 -!- liberliver [~Thunderbi@144.49.211.130.bc.googleusercontent.com] has quit [Ping timeout: 258 seconds] 14:23 -!- dr-orlovsky [~dr-orlovs@xdsl-188-154-186-21.adslplus.ch] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…] 15:42 -!- belcher [~belcher@unaffiliated/belcher] has quit [Ping timeout: 264 seconds] 15:44 -!- belcher [~belcher@unaffiliated/belcher] has joined #c-lightning 16:08 -!- dr-orlovsky [~dr-orlovs@xdsl-188-154-186-21.adslplus.ch] has joined #c-lightning 16:21 -!- dr-orlovsky [~dr-orlovs@xdsl-188-154-186-21.adslplus.ch] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…] 17:03 -!- justan0theruser [~justanoth@unaffiliated/justanotheruser] has joined #c-lightning 17:05 -!- justanotheruser [~justanoth@unaffiliated/justanotheruser] has quit [Ping timeout: 260 seconds] 17:18 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has joined #c-lightning 17:31 -!- belcher [~belcher@unaffiliated/belcher] has quit [Quit: Leaving] 17:37 -!- nixbitcoin [~nixbitcoi@gateway/tor-sasl/nixbitcoin] has quit [Ping timeout: 240 seconds] 17:37 -!- nixbitcoin [~nixbitcoi@gateway/tor-sasl/nixbitcoin] has joined #c-lightning 17:47 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has quit [Quit: Leaving.] 18:55 -!- dr-orlovsky [~dr-orlovs@xdsl-188-154-186-21.adslplus.ch] has joined #c-lightning 19:08 -!- dr-orlovsky [~dr-orlovs@xdsl-188-154-186-21.adslplus.ch] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…] 19:22 -!- k3tan [~pi@unaffiliated/k3tan] has quit [Quit: WeeChat 2.7.1] 19:25 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has joined #c-lightning 19:29 -!- bitdex [~bitdex@gateway/tor-sasl/bitdex] has joined #c-lightning 19:43 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has quit [Quit: Leaving.] 19:56 -!- k3tan [~pi@unaffiliated/k3tan] has joined #c-lightning 20:08 -!- achow101 [~achow101@unaffiliated/achow101] has quit [Quit: Bye] 20:09 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-txhnryyccoeyadae] has left #c-lightning [] 20:10 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-txhnryyccoeyadae] has joined #c-lightning 20:13 -!- achow101 [~achow101@unaffiliated/achow101] has joined #c-lightning 21:00 -!- afk11` [~afk11@gateway/tor-sasl/afk11] has quit [Remote host closed the connection] 21:00 -!- afk11` [~afk11@gateway/tor-sasl/afk11] has joined #c-lightning 21:24 -!- vasild [~vd@gateway/tor-sasl/vasild] has quit [Ping timeout: 240 seconds] 21:25 -!- vasild [~vd@gateway/tor-sasl/vasild] has joined #c-lightning 22:06 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has joined #c-lightning 22:12 -!- rh0nj [~rh0nj@88.99.167.175] has quit [Remote host closed the connection] 22:13 -!- rh0nj [~rh0nj@88.99.167.175] has joined #c-lightning 22:39 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has quit [Quit: Leaving.] 22:42 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has joined #c-lightning --- Log closed Sun Jun 21 00:00:56 2020