--- Day changed Mon Nov 14 2016 00:41 -!- aalex [~aalex@64.187.177.58] has joined #lightning-dev 00:48 -!- aalex [~aalex@64.187.177.58] has quit [Ping timeout: 246 seconds] 00:52 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has joined #lightning-dev 01:05 -!- moli [~molly@unaffiliated/molly] has quit [Ping timeout: 244 seconds] 01:08 -!- aalex [~aalex@64.187.177.58] has joined #lightning-dev 01:14 -!- jannes [~jannes@178.132.211.90] has joined #lightning-dev 01:14 -!- shesek [~shesek@bzq-84-110-176-21.red.bezeqint.net] has joined #lightning-dev 01:15 -!- aalex [~aalex@64.187.177.58] has quit [Ping timeout: 265 seconds] 01:22 -!- luke-jr [~luke-jr@unaffiliated/luke-jr] has quit [Excess Flood] 01:22 -!- luke-jr [~luke-jr@unaffiliated/luke-jr] has joined #lightning-dev 01:36 -!- laurentmt [~Thunderbi@80.215.138.203] has joined #lightning-dev 01:39 -!- laurentmt [~Thunderbi@80.215.138.203] has quit [Client Quit] 01:51 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has left #lightning-dev [] 01:52 -!- AaronvanW [~ewout@207pc74.sshunet.nl] has joined #lightning-dev 01:52 -!- AaronvanW [~ewout@207pc74.sshunet.nl] has quit [Changing host] 01:52 -!- AaronvanW [~ewout@unaffiliated/aaronvanw] has joined #lightning-dev 03:34 -!- moli [~molly@unaffiliated/molly] has joined #lightning-dev 04:42 -!- Grouver [~grouver@53535FBF.cm-6-4b.dynamic.ziggo.nl] has joined #lightning-dev 05:07 -!- jtimon [~quassel@186.31.134.37.dynamic.jazztel.es] has joined #lightning-dev 05:48 -!- fabrice__ [~fabrice@3.46-14-84.ripe.coltfrance.com] has joined #lightning-dev 06:24 -!- pm [~pm@11.46-14-84.ripe.coltfrance.com] has joined #lightning-dev 06:25 -!- aalex [~aalex@64.187.177.58] has joined #lightning-dev 06:25 -!- aalex_ [~aalex@64.187.177.58] has joined #lightning-dev 06:33 -!- pm [~pm@11.46-14-84.ripe.coltfrance.com] has quit [Quit: Leaving] 06:35 -!- maaku [~quassel@173-228-107-141.dsl.static.fusionbroadband.com] has quit [Quit: No Ping reply in 180 seconds.] 06:35 -!- maaku [~quassel@173-228-107-141.dsl.static.fusionbroadband.com] has joined #lightning-dev 06:44 -!- aalex_ [~aalex@64.187.177.58] has quit [Quit: Connection reset by beer] 06:45 -!- musdom [d2c3cb97@gateway/web/freenode/ip.210.195.203.151] has quit [Quit: Page closed] 06:54 -!- wraithm [~textual@205.197.160.100] has joined #lightning-dev 07:14 -!- murch [~murch@p4FE3BDB6.dip0.t-ipconnect.de] has joined #lightning-dev 07:41 -!- murchandamus [~murchghos@ghostdub.de] has joined #lightning-dev 07:43 -!- murch [~murch@p4FE3BDB6.dip0.t-ipconnect.de] has quit [Remote host closed the connection] 09:37 -!- aalex [~aalex@64.187.177.58] has quit [Ping timeout: 268 seconds] 09:39 -!- aalex [~aalex@64.187.177.58] has joined #lightning-dev 09:50 -!- fabrice__ [~fabrice@3.46-14-84.ripe.coltfrance.com] has quit [Quit: Leaving] 10:06 -!- Grouver [~grouver@53535FBF.cm-6-4b.dynamic.ziggo.nl] has quit [Quit: Leaving] 10:25 -!- laurentmt [~Thunderbi@80.215.210.232] has joined #lightning-dev 10:25 -!- laurentmt [~Thunderbi@80.215.210.232] has quit [Client Quit] 11:31 -!- aj [aj@cerulean.erisian.com.au] has quit [Ping timeout: 265 seconds] 11:37 -!- Netsplit *.net <-> *.split quits: wasi 11:39 -!- Netsplit over, joins: wasi 11:46 -!- aj [aj@cerulean.erisian.com.au] has joined #lightning-dev 12:00 -!- belcher [~belcher@unaffiliated/belcher] has quit [Ping timeout: 246 seconds] 12:13 -!- belcher [~belcher@unaffiliated/belcher] has joined #lightning-dev 12:17 -!- belcher [~belcher@unaffiliated/belcher] has quit [Remote host closed the connection] 14:21 -githubby:#lightning-dev- [lightning] cdecker opened pull request #92: irc: Switched to LFNet.org IRC server (master...patch-02) https://git.io/vXXzW 14:35 -!- wraithm [~textual@205.197.160.100] has quit [Ping timeout: 265 seconds] 14:45 -!- wraithm [~textual@205.197.160.100] has joined #lightning-dev 14:55 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has joined #lightning-dev 14:56 -!- go1111111 [~go1111111@104.200.154.82] has joined #lightning-dev 15:02 -!- wraithm [~textual@205.197.160.100] has quit [Ping timeout: 268 seconds] 15:06 -!- wraithm [~textual@205.197.160.100] has joined #lightning-dev 15:36 -!- belcher [~belcher@unaffiliated/belcher] has joined #lightning-dev 16:08 -!- jannes [~jannes@178.132.211.90] has quit [Quit: Leaving] 16:14 -!- wraithm [~textual@205.197.160.100] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…] 16:30 < rusty> roasbeef: OK, so I'm going to send two PRs. One which changes the length field to be the length of the crypto payload, thus making the max total size 2+16+65536. Secondly, to do separate key for the length so we can drop that 16bytes from the header. 16:31 < rusty> The length field can currently underflow the way you've written it, and that's bad. Generally a length field should not include the header itself. 16:32 < rusty> And key rotation after 1000 messages seems really fast. That's every 64M. I guess it's cheap.... 17:15 < roasbeef> rusty: the length field doesn't include the header it just encodes the length of the payload 17:15 < roasbeef> if we drop the MAC, then someone can flip bits causing us to read too many bytes and mess up the cipher state, with the MAC we catch that early and can terminate immedately 17:15 < rusty> roasbeef: ah, OK. I was just skimming as I reformatted for correct mardkown. 17:16 < rusty> roasbeef: yeah, attacker can cause delays that way. Not sure it's a real problem though... 17:16 < rusty> But as long as you've thought about it, I'm happy. 17:17 < roasbeef> have you pushed everything? 17:17 < rusty> No, just doing the fiddly crossrefs. 17:18 < roasbeef> gotcha 17:18 < rusty> roasbeef: actually, let me push now so people can review even while I tidy up formatting. 17:18 < roasbeef> cool, there's two things that's misisng atm: adding the state hints, and also the weight limits 17:18 < roasbeef> i'll make PR's for those two once it's all up 17:24 < rusty> roasbeef: done... 17:24 < roasbeef> blam!!! 17:28 < roasbeef> joseph will push a basic README in a sec 17:32 < rusty> roasbeef: cool, irc bot added, so we should see it here. 17:52 -!- Ylbam [uid99779@gateway/web/irccloud.com/x-fnyatslgnrlwidzc] has quit [Quit: Connection closed for inactivity] 17:56 -!- maaku [~quassel@173-228-107-141.dsl.static.fusionbroadband.com] has quit [Quit: No Ping reply in 180 seconds.] 17:58 -!- maaku [~quassel@173-228-107-141.dsl.static.fusionbroadband.com] has joined #lightning-dev 18:06 -lightningrfc:#lightning-dev- [lightning-rfc] rustyrussell created keygen-via-blinding (+1 new commit): https://git.io/vXXFk 18:06 -lightningrfc:#lightning-dev- lightning-rfc/keygen-via-blinding f508307 Rusty Russell: key generation: use standard blinding instead.... 19:27 -lightningrfc:#lightning-dev- [lightning-rfc] rustyrussell pushed 2 new commits to master: https://git.io/vXXpa 19:27 -lightningrfc:#lightning-dev- lightning-rfc/master 3c612dd Rusty Russell: 03-transactions: fix script formatting.... 19:27 -lightningrfc:#lightning-dev- lightning-rfc/master 9b7a292 Rusty Russell: BOLT #2, #5: derive maximum HTLC limit based on penalty size.... 19:30 < rusty> cdecker: don't suppose you and roasbeef figured out how big the failure message would be? There's a fixme there for you in 02-peer-protocol.md 19:31 -lightningrfc:#lightning-dev- [lightning-rfc] rustyrussell pushed 1 new commit to master: https://git.io/vXXpd 19:31 -lightningrfc:#lightning-dev- lightning-rfc/master d1b7c78 Rusty Russell: BOLT #2: fix cross-references.... 19:37 -lightningrfc:#lightning-dev- [lightning-rfc] rustyrussell pushed 1 new commit to master: https://git.io/vXXhI 19:37 -lightningrfc:#lightning-dev- lightning-rfc/master 99b8888 Rusty Russell: BOLT #3: Fix typo 20:02 < roasbeef> rusty: bolt #4 (onion routing stuffs) currently allocates 2 bytes for the failure messages 20:02 < roasbeef> with a min message length of 128 bytes, so padded out if there's no message 20:03 < roasbeef> but that message itself would be encapsulated within the failure message, just like the sphinx package is encapsulated within the htlc add messages 20:03 < rusty> roasbeef: I assume you ended up using AEAD using the emphemeral key of the node sending the message or soemthing? 20:04 < rusty> roasbeef: yeah, the FIME is for the MSG_UPDATE_FAIL_HTLC `reason` length. 20:04 < rusty> s/FIME/FIXME/ 20:06 < roasbeef> yeh, nodes currently re-use the shared secret to wrap encrypted failure message back to the initiator 20:07 < roasbeef> err well a key derived from the shared secret 20:08 < rusty> roasbeef: so, that's 128 + 16? 20:08 < rusty> And the initiator grinds through all the possible shared secrets to check where it came from, I assume. 20:10 < roasbeef> 20+4+2+128, so 154 bytes, in the current draft the HMAC used is the same format as the one in the sphinx packet itself -- a truncated sha256-hmac in order to match the size of the node identifiers 20:10 < roasbeef> yeh the initiator has to do a bit of grinding since she's unsure as to which point in the route triggered the failure 20:11 < roasbeef> hmm I guess the message length can be dropped since it's fixed sized, on the otherhand can leave it in place so future changes which increase the message length don't neccsarily have a code impact 20:18 -!- btcdrak [uid165369@gateway/web/irccloud.com/x-chjkrthevmuprlzz] has quit [Quit: Connection closed for inactivity] 21:03 < rusty> OK, let's leave it as a var field for now, so we can fiddle with it later. 22:01 -lightningrfc:#lightning-dev- [lightning-rfc] rustyrussell pushed 1 new commit to master: https://git.io/vX1kt 22:01 -lightningrfc:#lightning-dev- lightning-rfc/master ab15a6e Rusty Russell: BOLT #3: document how to efficiently derive shachain, fix refs to it.... 22:07 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has left #lightning-dev [] 22:43 -!- jtimon [~quassel@186.31.134.37.dynamic.jazztel.es] has quit [Remote host closed the connection] 23:05 -!- btcdrak [uid165369@gateway/web/irccloud.com/x-joloimvalxcuxrja] has joined #lightning-dev 23:36 -!- jannes [~jannes@178.132.211.90] has joined #lightning-dev