--- Day changed Tue May 16 2017 00:08 -!- takayaimai [~takayaima@p4296241-ipngn24901marunouchi.tokyo.ocn.ne.jp] has quit [] 00:11 -!- BashCo [~BashCo@unaffiliated/bashco] has joined #lightning-dev 00:24 -!- bedeho [~bedeho@91.90-149-204.nextgentel.com] has quit [Remote host closed the connection] 00:26 -!- bedeho [~bedeho@91.90-149-204.nextgentel.com] has joined #lightning-dev 01:05 -!- laurentmt [~Thunderbi@176.158.157.202] has joined #lightning-dev 01:07 -!- laurentmt [~Thunderbi@176.158.157.202] has quit [Client Quit] 01:10 -!- jannes [~jannes@095-097-246-234.static.chello.nl] has joined #lightning-dev 01:12 -!- laurentmt [~Thunderbi@176.158.157.202] has joined #lightning-dev 01:13 -!- JackH [~laptop@79-73-189-229.dynamic.dsl.as9105.com] has joined #lightning-dev 01:21 -!- laurentmt [~Thunderbi@176.158.157.202] has quit [Quit: laurentmt] 01:43 -!- BashCo [~BashCo@unaffiliated/bashco] has quit [Ping timeout: 240 seconds] 01:44 -!- BashCo [~BashCo@unaffiliated/bashco] has joined #lightning-dev 01:58 -!- laurentmt [~Thunderbi@176.158.157.202] has joined #lightning-dev 02:34 -!- bedeho [~bedeho@91.90-149-204.nextgentel.com] has quit [Remote host closed the connection] 02:42 -!- laurentmt [~Thunderbi@176.158.157.202] has quit [Quit: laurentmt] 02:51 -!- ThomasV [~ThomasV@unaffiliated/thomasv] has quit [Ping timeout: 268 seconds] 02:55 -!- bedeho [~bedeho@91.90-149-204.nextgentel.com] has joined #lightning-dev 03:09 -!- bedeho [~bedeho@91.90-149-204.nextgentel.com] has quit [Remote host closed the connection] 04:02 -!- bedeho [~bedeho@91.90-149-204.nextgentel.com] has joined #lightning-dev 04:30 -!- BashCo [~BashCo@unaffiliated/bashco] has quit [Ping timeout: 240 seconds] 04:31 -!- mol [~molly@unaffiliated/molly] has quit [Ping timeout: 272 seconds] 04:33 -!- moli_ [~molly@unaffiliated/molly] has joined #lightning-dev 04:33 -!- BashCo [~BashCo@unaffiliated/bashco] has joined #lightning-dev 04:46 -!- BashCo [~BashCo@unaffiliated/bashco] has quit [Ping timeout: 258 seconds] 04:49 -!- BashCo [~BashCo@unaffiliated/bashco] has joined #lightning-dev 04:58 -!- ThomasV [~ThomasV@unaffiliated/thomasv] has joined #lightning-dev 05:06 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has joined #lightning-dev 05:08 -!- jtimon [~quassel@117.29.134.37.dynamic.jazztel.es] has joined #lightning-dev 05:14 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has quit [Ping timeout: 260 seconds] 05:27 -!- mol [~molly@unaffiliated/molly] has joined #lightning-dev 05:30 -!- moli_ [~molly@unaffiliated/molly] has quit [Ping timeout: 246 seconds] 05:31 -!- moli_ [~molly@unaffiliated/molly] has joined #lightning-dev 05:34 -!- mol [~molly@unaffiliated/molly] has quit [Ping timeout: 268 seconds] 05:46 -!- bedeho [~bedeho@91.90-149-204.nextgentel.com] has quit [Remote host closed the connection] 05:51 -!- mol [~molly@unaffiliated/molly] has joined #lightning-dev 05:54 -!- moli_ [~molly@unaffiliated/molly] has quit [Ping timeout: 255 seconds] 05:57 -!- laurentmt [~Thunderbi@176.158.157.202] has joined #lightning-dev 06:02 -!- laurentmt [~Thunderbi@176.158.157.202] has quit [Quit: laurentmt] 06:12 -!- bedeho [~bedeho@91.90-149-204.nextgentel.com] has joined #lightning-dev 06:19 -!- ThomasV [~ThomasV@unaffiliated/thomasv] has quit [Ping timeout: 240 seconds] 06:31 -!- laurentmt [~Thunderbi@176.158.157.202] has joined #lightning-dev 06:31 -!- laurentmt [~Thunderbi@176.158.157.202] has quit [Client Quit] 07:01 -!- molz_ [~molly@unaffiliated/molly] has joined #lightning-dev 07:04 -!- mol [~molly@unaffiliated/molly] has quit [Ping timeout: 240 seconds] 07:06 -!- Sprh [~Sprh@12.20.48.10] has joined #lightning-dev 07:09 -!- bedeho [~bedeho@91.90-149-204.nextgentel.com] has quit [] 08:34 -!- ThomasV [~ThomasV@unaffiliated/thomasv] has joined #lightning-dev 08:45 -!- abpa [~abpa@96-82-80-28-static.hfc.comcastbusiness.net] has joined #lightning-dev 09:38 -!- ThomasV [~ThomasV@unaffiliated/thomasv] has quit [Ping timeout: 255 seconds] 09:58 -!- deusexbeer [~deusexbee@093-092-179-139-dynamic-pool-adsl.wbt.ru] has quit [Remote host closed the connection] 09:59 -!- BashCo [~BashCo@unaffiliated/bashco] has quit [Ping timeout: 240 seconds] 10:15 -!- BashCo [~BashCo@unaffiliated/bashco] has joined #lightning-dev 10:18 -!- moli_ [~molly@unaffiliated/molly] has joined #lightning-dev 10:19 -!- molz_ [~molly@unaffiliated/molly] has quit [Ping timeout: 246 seconds] 10:46 -!- laurentmt [~Thunderbi@176.158.157.202] has joined #lightning-dev 10:47 -!- laurentmt [~Thunderbi@176.158.157.202] has quit [Client Quit] 11:20 -!- Sprh [~Sprh@12.20.48.10] has quit [Read error: Connection reset by peer] 12:56 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has joined #lightning-dev 13:00 -!- laurentmt [~Thunderbi@176.158.157.202] has joined #lightning-dev 13:00 -!- starkness [~starkness@rrcs-67-251-193-154.nyc.biz.rr.com] has joined #lightning-dev 13:01 -!- laurentmt [~Thunderbi@176.158.157.202] has quit [Client Quit] 13:02 -!- mol [~molly@unaffiliated/molly] has joined #lightning-dev 13:05 -!- moli_ [~molly@unaffiliated/molly] has quit [Ping timeout: 240 seconds] 13:30 -!- moli_ [~molly@unaffiliated/molly] has joined #lightning-dev 13:32 -!- mol [~molly@unaffiliated/molly] has quit [Ping timeout: 246 seconds] 13:40 -!- mol [~molly@unaffiliated/molly] has joined #lightning-dev 13:41 -!- moli_ [~molly@unaffiliated/molly] has quit [Ping timeout: 240 seconds] 14:17 -!- starkness [~starkness@rrcs-67-251-193-154.nyc.biz.rr.com] has quit [Quit: starkness] 14:21 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has quit [Ping timeout: 268 seconds] 14:38 -!- deusexbeer [~deusexbee@093-092-179-139-dynamic-pool-adsl.wbt.ru] has joined #lightning-dev 15:12 -!- JackH [~laptop@79-73-189-229.dynamic.dsl.as9105.com] has quit [Quit: Leaving] 15:21 -!- jannes [~jannes@095-097-246-234.static.chello.nl] has quit [Quit: Leaving] 16:17 -!- starkness [~starkness@rrcs-67-251-193-154.nyc.biz.rr.com] has joined #lightning-dev 16:58 -!- abpa [~abpa@96-82-80-28-static.hfc.comcastbusiness.net] has quit [Quit: Textual IRC Client: www.textualapp.com] 17:04 -!- starkness [~starkness@rrcs-67-251-193-154.nyc.biz.rr.com] has quit [Quit: starkness] 18:04 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has joined #lightning-dev 18:04 < rusty> cdecker: roasbeef pointed out that spec says "* 4" to get fee-per-kw, not "/ 4". Is that the same fee erorr you saw in our implementation, or another one? 18:10 < ajd_> Are there supposed to be two separate chaining keys or one? 18:27 -!- Ylbam [uid99779@gateway/web/irccloud.com/x-tywysrwbtwdekvcg] has quit [Quit: Connection closed for inactivity] 18:29 < rusty> ajd_: Context? 18:29 -!- PaulCape_ [~PaulCapes@136.24.141.225] has quit [Quit: .] 18:30 -!- PaulCapestany [~PaulCapes@2604:5500:17:2ea:61d1:8f13:8837:549b] has joined #lightning-dev 18:34 -!- juscamarena_ [~justin@47.148.176.74] has quit [Remote host closed the connection] 18:34 -!- juscamarena_ [~justin@47.148.176.74] has joined #lightning-dev 19:18 -!- maaku [~mark@173.234.25.100] has quit [Quit: Lost terminal] 19:21 -!- maaku [~mark@173.234.25.100] has joined #lightning-dev 19:31 < ajd_> Changing the keys every 100 messages. 19:33 < ajd_> rusty: Lightning Message Key Rotation 19:34 < ajd_> As I read the spec, you have one chaining key. But to be compatible with lnd, I need to copy the chaining key to a sending chaining key and a receiving chaining key. 19:34 < ajd_> It does say "Key rotation is performed for each key (sk and rk) _individually _." though so maybe that could mean two separate chaining keys. 19:34 < rusty> ajd_: There should be one in each direction, otherwise we wou;dn't know when to rotate, yes. 19:36 < ajd_> I keep a nonce in each direction. But I guess I also need a chaining key in each direction, okay. 19:39 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has quit [Ping timeout: 240 seconds] 19:47 -!- starkness [~starkness@cpe-66-108-98-69.nyc.res.rr.com] has joined #lightning-dev 19:48 -!- laurentmt [~Thunderbi@176.158.157.202] has joined #lightning-dev 19:48 -!- laurentmt [~Thunderbi@176.158.157.202] has quit [Client Quit] 19:49 <+roasbeef> ajd_: each cipher state keeps a current key and a chaining key, the chaining key is used during key rotation to rotate _both_ the chaining key and regular key: ck', k = hkdf(secret=k, salt=ck, info=zero_byte) 19:49 <+roasbeef> the possible change I mentioned the other day would allow us to drop the extra ck for rotation and instead use a special reserved nonce value 19:51 < ajd_> yeah, that's what I had to do to make it work 19:52 < ajd_> And now that I'm looking at it I should probably combine rotateRK() and rotateSK() into a single function :D 19:58 -lightningrfc:#lightning-dev- [lightning-rfc] Roasbeef opened pull request #176: BOLT 2: correct sat/Kb to sat/Kw conversion to avoid over paying (master...fix-fee-suggestion) https://git.io/v9A0P 19:59 <+roasbeef> ajd_: well you won't always rotate them at the same time 20:00 <+roasbeef> by individually we mean that the nonces for the sending and receiving cipher state should be examined induvidually 20:03 < ajd_> yeah, I understand....I have it working (sent a few thousand pings back and forth and successfully rotated through several keys) 20:03 < ajd_> I just meant combining the code to take flag or something rather than copy/paste 20:05 < ajd_> actually once I take all this debug crap out it won't be long enough to justify that....whatever....I should go to bed now :D 20:06 <+roasbeef> ajd_: ahh gotcha 20:06 <+roasbeef> gz on getting rotation working properly! 20:09 < ajd_> the spec is pretty good; I especially liked the appendix to BOLT#8. I don't think I ever would have figured it out without the step by step debug lines for all the intermediate values. 20:47 -!- ajd_ [~Anthony@2001:470:daef:e1e1:27a3:b8c8:9db:79f6] has quit [Quit: Leaving] 20:50 -!- ThomasV [~ThomasV@unaffiliated/thomasv] has joined #lightning-dev 22:31 -!- ThomasV [~ThomasV@unaffiliated/thomasv] has quit [Ping timeout: 246 seconds] 23:13 -!- Ylbam [uid99779@gateway/web/irccloud.com/x-nkaqwqnwixawvpnl] has joined #lightning-dev 23:14 -!- starkness [~starkness@cpe-66-108-98-69.nyc.res.rr.com] has quit [Quit: starkness] 23:57 -!- BashCo [~BashCo@unaffiliated/bashco] has quit [Ping timeout: 240 seconds]