12016-03-23T00:30:53  *** justanotheruser has quit IRC
  22016-03-23T00:35:41  *** justanotheruser has joined #bitcoin-core-dev
  32016-03-23T00:49:23  *** laurentmt has joined #bitcoin-core-dev
  42016-03-23T01:07:26  *** Chris_Stewart_5 has joined #bitcoin-core-dev
  52016-03-23T01:09:22  *** randy-waterhouse has joined #bitcoin-core-dev
  62016-03-23T01:19:09  *** belcher has quit IRC
  72016-03-23T01:19:18  *** fengling has joined #bitcoin-core-dev
  82016-03-23T01:19:25  *** go1111111 has quit IRC
  92016-03-23T01:19:54  *** go1111111 has joined #bitcoin-core-dev
 102016-03-23T01:28:25  *** laurentmt has quit IRC
 112016-03-23T01:31:00  *** Ylbam has quit IRC
 122016-03-23T01:46:36  *** fengling has quit IRC
 132016-03-23T01:49:51  *** AaronvanW has quit IRC
 142016-03-23T01:54:14  *** fengling has joined #bitcoin-core-dev
 152016-03-23T02:30:59  *** mrkent has quit IRC
 162016-03-23T02:37:36  *** [Author] has joined #bitcoin-core-dev
 172016-03-23T02:40:53  *** Chris_Stewart_5 has quit IRC
 182016-03-23T02:45:56  *** [Author] has quit IRC
 192016-03-23T02:48:24  *** [Author] has joined #bitcoin-core-dev
 202016-03-23T02:52:15  *** Don_John has quit IRC
 212016-03-23T02:59:01  *** Alopex has quit IRC
 222016-03-23T03:00:06  *** Alopex has joined #bitcoin-core-dev
 232016-03-23T03:27:04  *** PRab has quit IRC
 242016-03-23T03:27:51  *** PRab has joined #bitcoin-core-dev
 252016-03-23T03:30:35  *** achow101 has quit IRC
 262016-03-23T03:58:58  *** wallet42 has joined #bitcoin-core-dev
 272016-03-23T04:14:49  *** wallet42 has quit IRC
 282016-03-23T04:15:20  *** wallet42 has joined #bitcoin-core-dev
 292016-03-23T04:23:01  *** Alopex has quit IRC
 302016-03-23T04:24:06  *** Alopex has joined #bitcoin-core-dev
 312016-03-23T04:29:55  *** jtimon has quit IRC
 322016-03-23T05:18:03  *** xiangfu has joined #bitcoin-core-dev
 332016-03-23T05:20:17  *** wallet42 has quit IRC
 342016-03-23T05:25:53  *** supasonic has joined #bitcoin-core-dev
 352016-03-23T06:00:20  *** dermoth has quit IRC
 362016-03-23T06:00:52  *** dermoth has joined #bitcoin-core-dev
 372016-03-23T06:16:01  *** Alopex has quit IRC
 382016-03-23T06:17:06  *** Alopex has joined #bitcoin-core-dev
 392016-03-23T06:35:00  *** Thireus has joined #bitcoin-core-dev
 402016-03-23T06:38:36  *** fanatid has joined #bitcoin-core-dev
 412016-03-23T06:42:14  <fanatid> Hey to all, can somebody explain, why BIP66 not checks that R or S more than 33 bytes (but checks that total length can't be more than 73 bytes)
 422016-03-23T06:42:44  <fanatid> for example this (in hex) will be valid for BIP66: 3044021458a2f39bd87f0000000506030000000000050603022c402dde9afe7f0000010000000100000004000000040000000000000000000000000000000a00000000000000 but invalid for secp256k1
 432016-03-23T06:43:03  <fanatid> question on github: https://github.com/bitcoin/bitcoin/pull/5713#issuecomment-197715788
 442016-03-23T06:49:42  *** supasonic has quit IRC
 452016-03-23T06:54:01  *** Alopex has quit IRC
 462016-03-23T06:54:55  *** ajweutr has joined #bitcoin-core-dev
 472016-03-23T06:55:06  *** Alopex has joined #bitcoin-core-dev
 482016-03-23T06:56:35  <sipa> fanatid: it's just a minimal subset of rules that are sufficient to make parsing easy, but don't guarantee that it's valid
 492016-03-23T06:56:57  <sipa> fanatid: there are more arbitrary restrictions that could have been included
 502016-03-23T06:57:40  *** paveljanik has quit IRC
 512016-03-23T06:57:50  <sipa> fanatid: for example, checking that the R or S integer is less than the secp256k1 curve order (which would rule out some 33-byte values)
 522016-03-23T06:58:12  <fanatid> I understand that there are not all restrictions, it's just very strange to see that BIP66 checks total length, but not checks r|s length
 532016-03-23T06:58:30  <sipa> fanatid: or you could go as far as checking that R is a valid secp256k1 X coordinate mod the order
 542016-03-23T06:59:35  <sipa> fanatid: adding that would not have added anything; the total length check is included because otherwise the rest of the bip66 code would have needed to be able to deal with >1-byte length descriptors
 552016-03-23T07:02:28  <sipa> in retrospect, maybe we could have added length restrictions
 562016-03-23T07:02:47  <sipa> but it doesn't matter much, and the rules are as they are
 572016-03-23T07:02:54  <fanatid> sipa: thank you, can you paste answer in github issue? (or I can do this, if you busy)
 582016-03-23T07:03:33  <sipa> if we'd change it again, i would argue that signatures have to be valid, or ""; anything else results in a failed script execution
 592016-03-23T07:07:08  <sipa> and i do plan to propose a 64-byte Schnorr signature based scheme after segwit at some point, but that doesn't affect existing signature parsing of course
 602016-03-23T07:07:36  <sipa> fanatid: there was some discussion about this precise issue before, i think
 612016-03-23T07:07:52  <sipa> fanatid: probably on the ML or the BIP pr itself
 622016-03-23T07:22:18  *** Ylbam has joined #bitcoin-core-dev
 632016-03-23T07:48:33  *** GreenIsMyPepper has quit IRC
 642016-03-23T08:02:00  <GitHub82> [bitcoin] laanwj pushed 2 new commits to master: https://github.com/bitcoin/bitcoin/compare/c946a15075ba...490064111f86
 652016-03-23T08:02:00  <GitHub82> bitcoin/master bb16c88 João Barbosa: Prevent multiple calls to CWallet::AvailableCoins
 662016-03-23T08:02:01  <GitHub82> bitcoin/master 4900641 Wladimir J. van der Laan: Merge #7649: Prevent multiple calls to CWallet::AvailableCoins...
 672016-03-23T08:02:08  <GitHub173> [bitcoin] laanwj closed pull request #7649: Prevent multiple calls to CWallet::AvailableCoins (master...enhancement/prevent-multiple-calls-availablecoins) https://github.com/bitcoin/bitcoin/pull/7649
 682016-03-23T08:03:56  *** frankenmint has quit IRC
 692016-03-23T08:04:31  *** frankenmint has joined #bitcoin-core-dev
 702016-03-23T08:09:14  *** frankenmint has quit IRC
 712016-03-23T08:15:01  *** Alopex has quit IRC
 722016-03-23T08:16:06  *** Alopex has joined #bitcoin-core-dev
 732016-03-23T08:41:01  *** Alopex has quit IRC
 742016-03-23T08:42:07  *** Alopex has joined #bitcoin-core-dev
 752016-03-23T08:58:37  *** laurentmt has joined #bitcoin-core-dev
 762016-03-23T08:58:51  *** randy-waterhouse has quit IRC
 772016-03-23T09:09:02  *** Guyver2 has joined #bitcoin-core-dev
 782016-03-23T09:41:08  *** laurentmt has quit IRC
 792016-03-23T09:59:35  *** AaronvanW has joined #bitcoin-core-dev
 802016-03-23T10:09:15  *** xiangfu has quit IRC
 812016-03-23T10:28:43  <wumpus> I'm shocked how many people still use windows xp, and even run bitcoin nodes on it
 822016-03-23T10:29:16  *** fengling has quit IRC
 832016-03-23T10:30:17  *** laurentmt has joined #bitcoin-core-dev
 842016-03-23T10:32:36  <ajweutr> I'm shocked how many people still use windows.
 852016-03-23T10:33:14  <wumpus> well okay but how can you rationalize running internet-connected software on something that will get no security updates anymore
 862016-03-23T10:36:20  <sipa> running internet-connected *wallet* software
 872016-03-23T10:36:25  <wumpus> it's like signing a general 'yes I want to be part of your botnet' waiver
 882016-03-23T10:36:31  <wumpus> well they claim not to use the wallet
 892016-03-23T10:38:46  *** fengling has joined #bitcoin-core-dev
 902016-03-23T10:43:12  <btcdrak> wumpus: there are hundreds of thousands of ATMs around the world still running Windows XP...
 912016-03-23T10:44:44  <wumpus> absurd
 922016-03-23T10:50:53  *** Guyver2 has quit IRC
 932016-03-23T10:57:06  <Luke-Jr> wumpus: as if a node has any value besides security
 942016-03-23T11:06:21  <wumpus> the thing is, the last thing I want is to discourage people from running a node, but they should also understand that we can't devote much time to supporting a 15 year old OS that was abandoned by the vendor
 952016-03-23T11:08:54  <sipa> in other news: i now run bitcoin core on my phonr
 962016-03-23T11:08:59  <sipa> *phone
 972016-03-23T11:15:32  <btcdrak> wumpus: given that XP has been EOL for years now, should we be supporting it at all? Basically, the OS is insecure.
 982016-03-23T11:15:56  <btcdrak> sipa: are you using Abcore?
 992016-03-23T11:17:11  <sipa> btcdrak: yeah
1002016-03-23T11:20:25  *** gevs has quit IRC
1012016-03-23T11:32:51  *** btcdrak is now known as intdrak
1022016-03-23T11:33:58  *** gevs has joined #bitcoin-core-dev
1032016-03-23T11:41:06  <wumpus> sipa: cool :)
1042016-03-23T11:41:35  <wumpus> intdrak: I'd expected so, but see the response to the issue where I dare proposing dropping support for windows xp and older: https://github.com/bitcoin/bitcoin/issues/7681
1052016-03-23T11:42:48  <wumpus> apparently release 0.12.0 is already unstable on wxp, it appears due to some msvcrt.dll issue. If that doesn't get resolved, we have to make it official and drop support for it.
1062016-03-23T11:47:03  *** dermoth has quit IRC
1072016-03-23T11:47:34  <GitHub103> [bitcoin] laanwj opened pull request #7737: devtools: make github-merge.py use py3 (master...2016_03_python_3_github_merge) https://github.com/bitcoin/bitcoin/pull/7737
1082016-03-23T11:47:48  *** dermoth has joined #bitcoin-core-dev
1092016-03-23T11:59:00  <intdrak> wumpus: I dont think the comment in #7681 is true. There is _unofficial support_ from a 3rd party dev called "harkaz". There is no official support for XP, it's EOL.
1102016-03-23T11:59:31  <intdrak> wumpus: sauce http://www.ryanvm.net/forum/viewtopic.php?t=10321
1112016-03-23T12:02:51  <wumpus> in any case I didn't even give a date or milestone, and still people reply like that
1122016-03-23T12:03:16  <wumpus> a third party releasing a service pack? seems legit...
1132016-03-23T12:03:17  <sipa> wumpus: it's two people...
1142016-03-23T12:03:46  *** fanatid has quit IRC
1152016-03-23T12:06:11  <wumpus> yeah...
1162016-03-23T12:07:14  <wumpus> maybe I'm unduly worried, it was more about the speed at which those replies came in, apparently it's another useless thing people feel very strongly about
1172016-03-23T12:09:51  <wumpus> in any case if anyone actually wants to support bitcoin core on XP, be my guest, you're welcome, but don't simply expect it from others
1182016-03-23T12:12:53  <intdrak> wumpus: I think your response is reasonable: try to fix it now, and remove support from 0.13 in any case.
1192016-03-23T12:13:06  <intdrak> and if it cant be fixed, too bad.
1202016-03-23T12:14:46  <GitHub138> [bitcoin] laanwj pushed 3 new commits to master: https://github.com/bitcoin/bitcoin/compare/490064111f86...909b72b10b4d
1212016-03-23T12:14:47  <GitHub138> bitcoin/master 5fd2318 fanquake: [Depends] Miniupnpc 1.9.20160209...
1222016-03-23T12:14:47  <GitHub138> bitcoin/master c85f475 fanquake: [Depends] Latest config.guess & config.sub
1232016-03-23T12:14:48  <GitHub138> bitcoin/master 909b72b Wladimir J. van der Laan: Merge #7710: [Depends] Bump miniupnpc and config.guess+sub...
1242016-03-23T12:14:56  <GitHub55> [bitcoin] laanwj closed pull request #7710: [Depends] Bump miniupnpc and config.guess+sub (master...depends-02) https://github.com/bitcoin/bitcoin/pull/7710
1252016-03-23T12:17:20  <wumpus> right
1262016-03-23T12:25:10  <GitHub116> [bitcoin] laanwj pushed 3 new commits to master: https://github.com/bitcoin/bitcoin/compare/909b72b10b4d...e2ebd259fbe8
1272016-03-23T12:25:11  <GitHub116> bitcoin/master fe00ca7 Andrew C: Create generatetoaddress rpc...
1282016-03-23T12:25:11  <GitHub116> bitcoin/master d5c5c71 Andrew C: RPC tests for generatetoaddress...
1292016-03-23T12:25:12  <GitHub116> bitcoin/master e2ebd25 Wladimir J. van der Laan: Merge #7671: [RPC] Add generatetoaddress rpc to mine to an address...
1302016-03-23T12:25:17  <GitHub149> [bitcoin] laanwj closed pull request #7671: [RPC] Add generatetoaddress rpc to mine to an address (master...generate-to-addr) https://github.com/bitcoin/bitcoin/pull/7671
1312016-03-23T12:25:57  *** Guyver2 has joined #bitcoin-core-dev
1322016-03-23T12:29:00  <Luke-Jr> intdrak: is "3rd party unofficial support" significantly different from a Linux distro fork in this regard?
1332016-03-23T12:29:19  <Luke-Jr> (not that I think we need to support XP. if nobody cares enough to fix it, it can go bye-bye)
1342016-03-23T12:29:53  <sipa> Luke-Jr: that's a good point
1352016-03-23T12:30:14  *** Chris_Stewart_5 has joined #bitcoin-core-dev
1362016-03-23T12:30:15  <wumpus> did they legally take over the support from microsoft?
1372016-03-23T12:30:37  <wumpus> if so, I suppose it's comparable, if not, it's something completely different
1382016-03-23T12:30:43  <sipa> Luke-Jr: i think that the fact that most of the code is closed source does make a quantitave different, but it's fuzzy
1392016-03-23T12:30:59  <wumpus> in any case it isn't any reason to influence our decision about supporting it or not
1402016-03-23T12:31:19  <wumpus> someone needs to step up to support it, if not, it's done
1412016-03-23T12:31:19  <Luke-Jr> sipa: they can't identify unfixed bugs maybe, but they could in theory backport or identify unbackportable stuff
1422016-03-23T12:32:30  <Luke-Jr> wumpus: from a security perspective, I don't know why the legalities would matter. but I agree it isn't very relevant.
1432016-03-23T12:33:03  <wumpus> Luke-Jr: well I think from a security perspective, for a closed source OS, microsoft's blessing is very imporant.
1442016-03-23T12:34:28  <wumpus> and you can't support a closed source OS if you don't know what is going on behind the scenes, if you don't have access to internal documents and source code etc
1452016-03-23T12:35:17  <wumpus> you were comparing it to a linux distro fork where everything happens in the open - taking over support for a close source product is very different
1462016-03-23T12:36:11  <sipa> yeah, i think that in theory you can say that a linux distro without any official support is not different from an unofficially supported windows os
1472016-03-23T12:36:38  <sipa> but in practice, it's a huge difference; closed source is one, but also the fact that linux distros do more just packaging of work done by other projects
1482016-03-23T12:37:07  <wumpus> you can't really continue someone elses' development with closed source software... or what, reverse engineer, use a hex editor?
1492016-03-23T12:37:09  <sipa> windows unsupported probably means that there are components in the OS on which _nobody_ is even working anymore
1502016-03-23T12:38:01  <wumpus> would you claim that makes *no* difference from a security perspective?
1512016-03-23T12:54:38  *** paveljanik has joined #bitcoin-core-dev
1522016-03-23T13:15:17  *** Guyver2 has quit IRC
1532016-03-23T13:31:23  *** jtimon has joined #bitcoin-core-dev
1542016-03-23T13:35:32  <morcos> wumpus: i'm not going to be around for the meeting tomorrow.  but would have been nice if we'd made more progress on our action items for last week.
1552016-03-23T13:35:54  <morcos> whats the best way to get a few volunteers to review these backports so we can start RC's for the CSV soft fork?
1562016-03-23T13:36:47  <wumpus> I don't have an answer to that, unfortunately
1572016-03-23T13:36:57  <wumpus> getting people to review things is very hard
1582016-03-23T13:37:17  <wumpus> you could try spamming it here a few times, or on twitter, or wherever
1592016-03-23T13:38:38  <wumpus> ideally, people that care about backports at all would spend work reviewing what is backported to their favorite version
1602016-03-23T13:38:56  <morcos> i think we should be a bit more willing to ask specific contributors (who would be appropriate for the PR) when its something high priority like this that we all agree is holding up progress (to some degree)
1612016-03-23T13:39:19  <wumpus> sure, you can always @ people and ping them in the PR
1622016-03-23T13:42:52  <wumpus> it tends to work
1632016-03-23T13:43:20  <instagibbs> morcos, asking *specific* people probably works better
1642016-03-23T13:43:41  <instagibbs> "Someone call 911" vs "You call 911"
1652016-03-23T13:44:01  <instagibbs> (911 being US emergency number)
1662016-03-23T13:50:16  *** Chris_Stewart_5 has quit IRC
1672016-03-23T13:50:35  *** d_t has joined #bitcoin-core-dev
1682016-03-23T13:54:09  <intdrak> luke-jr: sipa: I think it's completely different. MS Windows is closed source, so I'm not sure how he can be providing reliable support - certainly no way to audit it.
1692016-03-23T13:54:38  <sipa> yes, i agree that in practice is completely different
1702016-03-23T13:55:10  *** d_t has quit IRC
1712016-03-23T13:55:53  <sipa> but the criterion is not whether or not there is a official support (because many linux distros have no official support whatsoever), but whether the available support is sufficient
1722016-03-23T13:56:45  <wumpus> any linux distribution worth its salt at least has security upgrades
1732016-03-23T13:57:59  <sipa> yes, agree completely - i was just arguing semantics
1742016-03-23T13:58:02  <sipa> sorry :)
1752016-03-23T13:58:07  <intdrak> morcos: I have been hassling people in private to do reviews. I'll go bang on a few more doors
1762016-03-23T14:00:51  <wumpus> as for official support, yea, for Ubuntu, Redhat, etc you can get some kind of support contract, doubt that's possible for the smaller ones
1772016-03-23T14:04:27  *** Chris_Stewart_5 has joined #bitcoin-core-dev
1782016-03-23T14:06:44  *** alexuy has joined #bitcoin-core-dev
1792016-03-23T14:08:09  *** musalbas has quit IRC
1802016-03-23T14:08:09  *** lysobit has quit IRC
1812016-03-23T14:08:56  *** Taek42 has joined #bitcoin-core-dev
1822016-03-23T14:09:01  *** lesderid has quit IRC
1832016-03-23T14:09:20  <GitHub144> [bitcoin] laanwj pushed 2 new commits to master: https://github.com/bitcoin/bitcoin/compare/e2ebd259fbe8...3bdc583b3f07
1842016-03-23T14:09:21  <GitHub144> bitcoin/master 68d4282 Alex Morcos: Fix calculation of balances and available coins....
1852016-03-23T14:09:21  <GitHub144> bitcoin/master 3bdc583 Wladimir J. van der Laan: Merge #7715: Fix calculation of balances and available coins....
1862016-03-23T14:09:27  *** sipa has quit IRC
1872016-03-23T14:09:30  <GitHub191> [bitcoin] laanwj closed pull request #7715: Fix calculation of balances and available coins. (master...fixconflicts_take2) https://github.com/bitcoin/bitcoin/pull/7715
1882016-03-23T14:09:52  <wumpus> morcos: the other option, of course, is to just start merging stuff :)
1892016-03-23T14:09:53  *** Taek has quit IRC
1902016-03-23T14:12:14  <GitHub160> [bitcoin] laanwj pushed 1 new commit to 0.12: https://github.com/bitcoin/bitcoin/commit/19866c1ffcb860bc2980e00e956685b9a8f96529
1912016-03-23T14:12:14  <GitHub160> bitcoin/0.12 19866c1 Alex Morcos: Fix calculation of balances and available coins....
1922016-03-23T14:12:28  <intdrak> I would assume the backports are relatively straightforward to review.
1932016-03-23T14:12:42  *** achow101 has joined #bitcoin-core-dev
1942016-03-23T14:13:08  *** intdrak is now known as btcdrak
1952016-03-23T14:13:37  *** fengling has quit IRC
1962016-03-23T14:13:38  *** AdrianG_ has joined #bitcoin-core-dev
1972016-03-23T14:16:14  <wumpus> if there are to be any bounties in the bitcoin core project ever it'd be for reviewing code, that's by far the most difficult thing to motivate people to do
1982016-03-23T14:18:34  *** sipa_ has joined #bitcoin-core-dev
1992016-03-23T14:18:34  *** Aleph0 has quit IRC
2002016-03-23T14:18:35  *** lesderid_ has joined #bitcoin-core-dev
2012016-03-23T14:19:39  <btcdrak> Well the PRs people need to review are #7648, #7543 and #7716
2022016-03-23T14:21:12  <wumpus> some projects have a bot that automatically picks a random reviewer from some list for a PR when it's finished, is that maybe an idea? :p https://github.com/maidsafe/safe_ffi/pull/45
2032016-03-23T14:22:04  <sipa_> at google there was a policy that you pick an appropriate reviewer yourself
2042016-03-23T14:22:15  <btcdrak> hrm. offer a bounty and the winner is decided by the the merge commit hash :-P
2052016-03-23T14:22:28  <sipa_> btcdrak: you can grind commit hashes :p
2062016-03-23T14:23:07  <wumpus> well for some PRs it's pretty straightforward who should review it, e.g. cfields for build system changes, for others not so much
2072016-03-23T14:24:29  <wumpus> another option would be to put some time pressure behind it, post a date in the PR, if no comments by then it will be merged as-is
2082016-03-23T14:24:37  <btcdrak> #7648 is pretty straight forward and it's got lots of RPC tests to verify behaviour.
2092016-03-23T14:24:43  <sipa_> wumpus: ouch!
2102016-03-23T14:25:27  <sipa_> (i generally agree that trying to provide fast feedback on PRs is something to aim for... but automatic merging may be a bridge too far)
2112016-03-23T14:25:30  <wumpus> sipa_: just throwing out ideas I've seen in other projects, not saying it's a good idea :)
2122016-03-23T14:26:39  <wumpus> it also depends on the kind of change, I tend to merge pure tests changes semi-automatically, obviously we don't want that for consensus changes
2132016-03-23T14:27:56  <btcdrak> I think the only solution is more staff.
2142016-03-23T14:28:39  <jonasschnelli> we could incentives reviews by adding btc-micropayment to contributors that commented a tested ACK (<githash> of later merged PR ... :) *duck*
2152016-03-23T14:29:02  <jonasschnelli> I'm pretty sure we would get a lot of (untested) tested ACKs
2162016-03-23T14:29:43  <btcdrak> yeah ^
2172016-03-23T14:29:45  <wumpus> jonasschnelli: yea you'd have to require an extensive testing report in that case, to be sure someone actually did the work
2182016-03-23T14:30:01  <btcdrak> need some kind of "proof of review, proof of test"
2192016-03-23T14:30:03  <wumpus> jonasschnelli: and that's probably not as far as people are willing to go for a micropayment :)
2202016-03-23T14:30:34  <jonasschnelli> wumpus: Right. He needs to calculate a sha256 of the random chosen words of the change source-code. :)
2212016-03-23T14:30:43  <sipa_> or you could encourage PRs to have a hash of a message that reveals something the author believes a reviewer should notice, and you can get a bounty for correctly finding it
2222016-03-23T14:30:47  *** sipa_ is now known as sipa
2232016-03-23T14:30:49  <btcdrak> you'd have to introduce a couple of bugs on purpose to see if people picked up on it to know if they really looked properly
2242016-03-23T14:31:17  *** sipa is now known as Guest7455
2252016-03-23T14:31:37  *** Guest7455 is now known as sipax
2262016-03-23T14:31:46  *** sipax has quit IRC
2272016-03-23T14:31:46  *** sipax has joined #bitcoin-core-dev
2282016-03-23T14:33:47  <morcos> i think we should not treat all PR's equally
2292016-03-23T14:34:00  <morcos> for some PR's the lack of reviewers is the signal as to whether or not its somethign we want to merge
2302016-03-23T14:34:15  *** lesderid_ is now known as lesderid
2312016-03-23T14:34:27  <morcos> but for other PR's we've agreed a priori that we want the functionality or fix and its just a matter of ensuring the code has been reviewed
2322016-03-23T14:34:35  <morcos> its the second case that i think we need to work on
2332016-03-23T14:34:36  <wumpus> and on the other side, some people actually do get review comments but then delay indefinitely in taking them into account *cough* rebroad *cough*
2342016-03-23T14:34:53  <sipax> maybe we should try to have a deadline on concept ack/nacks
2352016-03-23T14:35:00  <morcos> i know for example that i'll sometimes get caught up in a streak of coding and not doing enough reviewing
2362016-03-23T14:35:16  <morcos> and i certainly wouldn't mind if there were PR's that were in the second category that i got pinged on if they were in my wheelhouse
2372016-03-23T14:35:30  <morcos> but what i don't want is every random PR for someone to assign it to me to review
2382016-03-23T14:36:10  <wumpus> absolutely not all PRs should be treated equally, that's also certainly not what is happening, things that garner no interest are closed after a while
2392016-03-23T14:36:31  <morcos> so i think putting it entirely in the hands of the PR author isn't maybe right...  but perhaps some of the senior project people could say to the author, hey, please ping a few reviewers for this code, we'd like to get it merged
2402016-03-23T14:36:35  <morcos> i dont know
2412016-03-23T14:37:27  <btcdrak> for #7648 how many reviewers do we need?
2422016-03-23T14:37:48  <wumpus> well as said, for some PRs it's clear who should be pinged for them, e.g. if there is some complicated mempool change I'll be sure to ping you morcos
2432016-03-23T14:38:22  <wumpus> but for a backport it's not nearly as clear cut
2442016-03-23T14:39:06  <morcos> 7648 looks good at this point, and 7543 is fairly trivial if you trust 7648.
2452016-03-23T14:39:21  <morcos> 7716 on the other hand is a problem.  the 0.11 backport.
2462016-03-23T14:39:45  <morcos> i think thats always going to be a problem going back a version, i mean who is the poor sap who is going to review the segwit backport
2472016-03-23T14:39:47  <wumpus> yes #7648 looks good
2482016-03-23T14:40:01  *** laurentmt has quit IRC
2492016-03-23T14:40:52  <wumpus> btcdrak: you've introduced a new blockchain historical video media extension in #7648? *ducks* "BIP113 Media Time Past."
2502016-03-23T14:41:27  <morcos> my favorite is btcdrak's insistence on the acronym TDB
2512016-03-23T14:42:41  <helo> soon we will communicate using only acronyms <3
2522016-03-23T14:43:29  <sipax> ACK OR GTFO!
2532016-03-23T14:43:53  <wumpus> lol
2542016-03-23T14:45:14  <morcos> wumpus: would be nice to add first commit from https://github.com/bitcoin/bitcoin/pull/7707 as well, just commented on PR
2552016-03-23T14:46:26  <wumpus> morcos: sure, though usually we merge the master pull first before backporting anything
2562016-03-23T14:47:08  <btcdrak> wumpus: ahahaha
2572016-03-23T14:47:15  <wumpus> in this case, that it's a combination of a GUI change and a non-GUI change (which should be backported) complicates the process, otoh it's just one line so here goes..
2582016-03-23T14:47:17  <morcos> wumpus: yeah, thats why i didn't ACK that commit earlier, i was going to review the whole PR, but i've run out of time to do that (going out of town).  but you could merge that commit into master and just make jonas rebase
2592016-03-23T14:47:50  <wumpus> yes good idea, I'll do that
2602016-03-23T14:47:55  <jonasschnelli> morcos, wumpus: should I open a PR with the non-gui oneliner against master and 0.12?
2612016-03-23T14:48:35  <wumpus> jonasschnelli: I was just going to do that, but sure go ahead :)
2622016-03-23T14:48:45  <jonasschnelli> okay... give me couple of minutes
2632016-03-23T14:50:27  *** fengling has joined #bitcoin-core-dev
2642016-03-23T14:51:08  <GitHub38> [bitcoin] jonasschnelli opened pull request #7739: [Wallet][RPC] add abandoned status to listtransactions (master...2016/03/aba_rpc) https://github.com/bitcoin/bitcoin/pull/7739
2652016-03-23T14:51:43  <GitHub56> [bitcoin] jonasschnelli opened pull request #7740: [0.12 BP] [Wallet][RPC] add abandoned status to listtransactions (0.12...2016/03/aba_rpc_012) https://github.com/bitcoin/bitcoin/pull/7740
2662016-03-23T14:51:44  <jonasschnelli> wumpus: done https://github.com/bitcoin/bitcoin/pull/7739 and https://github.com/bitcoin/bitcoin/pull/7740
2672016-03-23T14:58:51  *** supasonic has joined #bitcoin-core-dev
2682016-03-23T14:59:11  <jonasschnelli> Anyone interested in reviewing my p2p-authentication and encryption BIP before submitting to the ML?
2692016-03-23T14:59:38  <jonasschnelli> https://github.com/bitcoin/bips/compare/master...jonasschnelli:2016/03/auth_enc?expand=1
2702016-03-23T15:21:55  *** sipax is now known as sipa
2712016-03-23T15:22:17  *** wallet42 has joined #bitcoin-core-dev
2722016-03-23T15:25:06  *** Guyver2 has joined #bitcoin-core-dev
2732016-03-23T15:30:46  <GitHub102> [bitcoin] laanwj pushed 2 new commits to master: https://github.com/bitcoin/bitcoin/compare/3bdc583b3f07...09a079e6484a
2742016-03-23T15:30:47  <GitHub102> bitcoin/master 263de3d Jonas Schnelli: [Wallet][RPC] add abandoned status to listtransactions
2752016-03-23T15:30:47  <GitHub102> bitcoin/master 09a079e Wladimir J. van der Laan: Merge #7739: [Wallet][RPC] add abandoned status to listtransactions...
2762016-03-23T15:30:51  <GitHub61> [bitcoin] laanwj closed pull request #7739: [Wallet][RPC] add abandoned status to listtransactions (master...2016/03/aba_rpc) https://github.com/bitcoin/bitcoin/pull/7739
2772016-03-23T15:31:35  <GitHub170> [bitcoin] laanwj pushed 1 new commit to 0.12: https://github.com/bitcoin/bitcoin/commit/7ffc2bd9439b2ad4da653583f7e57915980522a3
2782016-03-23T15:31:35  <GitHub170> bitcoin/0.12 7ffc2bd Jonas Schnelli: [Wallet][RPC] add abandoned status to listtransactions...
2792016-03-23T15:32:57  <GitHub140> [bitcoin] laanwj closed pull request #7740: [0.12 BP] [Wallet][RPC] add abandoned status to listtransactions (0.12...2016/03/aba_rpc_012) https://github.com/bitcoin/bitcoin/pull/7740
2802016-03-23T15:34:30  <wumpus> jonasschnelli: sure
2812016-03-23T15:38:18  *** alexuy_ has joined #bitcoin-core-dev
2822016-03-23T15:38:18  *** alexuy has quit IRC
2832016-03-23T15:38:18  *** alexuy_ is now known as alexuy
2842016-03-23T15:41:27  <wumpus> jonasschnelli: you should also approach warren about this ,he was very interested in this, maybe he can drum op some more reviewers
2852016-03-23T15:42:17  <jonasschnelli> wumpus: Yes. He show interest at the conference in Cambridge. Ping warren.
2862016-03-23T15:44:10  *** supasonic has quit IRC
2872016-03-23T15:47:17  <wumpus> jonasschnelli: btw I didn't discover yet what the proposed layering is, but you should always encrypt-then-mac (verify mac before decryptiong), not mac-then-encrypt (eg have the message autehntication behind/inside the encryption)
2882016-03-23T15:48:20  <jonasschnelli> wumpus: Yes. I agree. But the authentication scheme is ECDSA bases. IMO the auth itself is encrypted.
2892016-03-23T15:48:56  *** fengling has quit IRC
2902016-03-23T15:49:35  <jonasschnelli> wumpus: and the proposed Auth does what "certificates" do in SSH. They ensure that the remote party sill possesses the private key (=identity).
2912016-03-23T15:49:42  <wumpus> jonasschnelli: ok, but I suppose you never have enc(auth(
2922016-03-23T15:49:57  <wumpus> jonasschnelli: then it's good
2932016-03-23T15:50:02  *** wallet42 has quit IRC
2942016-03-23T15:50:13  *** wallet42 has joined #bitcoin-core-dev
2952016-03-23T15:50:16  <jonasschnelli> Yes. No enc(auth()). Enc itself has no MITM protection.
2962016-03-23T15:54:56  <wumpus> jonasschnelli: so encryption and authentication is optional per message? I think the latter is risky, can't a MITMer insert a non-authenticated message inside the stream?
2972016-03-23T15:55:17  <wumpus> I think once authentication is initiated, every message should be authenticated
2982016-03-23T15:55:22  <sipa> agree
2992016-03-23T15:55:55  <wumpus> I'm not sure that should hold for encryption, though there is a point to do so: it makes traffic analysis harder, more haystack to search for needles in
3002016-03-23T15:55:57  <jonasschnelli> wumpus: I'm not sure if it would make sense to encrypt blocks. Why would it be risky?
3012016-03-23T15:56:15  <wumpus> jonasschnelli: yeah agreed
3022016-03-23T15:56:58  <wumpus> jonasschnelli: but why would you not encrypt everything?
3032016-03-23T15:57:05  <sipa> (i have not looked at your bips) i think it should be a single authentication+encryption extension that is either off or on; if the identity of the peer is not known, a randomly generated key is used, otherwise a known key is used
3042016-03-23T15:57:24  <wumpus> jonasschnelli: (once encryption is established, I mean)
3052016-03-23T15:57:33  <jonasschnelli> You could encrypt everything. Its just not a requirement in the BIP. It depends on the resources you have.
3062016-03-23T15:57:54  <wumpus> resources for encryption decryption are neglible compared to block processing, even deserialization
3072016-03-23T15:58:07  <jonasschnelli> Yes. I agree.
3082016-03-23T15:58:36  <wumpus> and if you don't want to encrypt, fine, don't establish it, it's an optional extension :)
3092016-03-23T15:58:50  <jonasschnelli> sipa: I have wrote two separate BIPs because auth could also make sense for non-encrypted coms.
3102016-03-23T15:59:59  <sipa> jonasschnelli: if i would redesign bitcoin p2p it would always be authenticated and always encrypted
3112016-03-23T16:00:07  <jonasschnelli> wumpus: Yes. It is probably bad if partial traffic will be unencrypted after enc-init.
3122016-03-23T16:00:20  <sipa> yes, authentication without encryption is iseful
3132016-03-23T16:00:25  *** supasonic has joined #bitcoin-core-dev
3142016-03-23T16:00:41  <sipa> but if you're going through the trouble of proposing a change, i think you should immediately go all the way
3152016-03-23T16:00:52  <jonasschnelli> sipa: Agree. But there is a problem with the identity management (MITM).
3162016-03-23T16:01:23  <jonasschnelli> First time you connect to a trusted node, you might want to ensure it is the correct identity (preshared key over a different chan).
3172016-03-23T16:01:39  <sipa> that problem always exists for authentivation
3182016-03-23T16:01:46  <wumpus> jonasschnelli: yes, the same problem as ssh basically, you may want to verify the remote fingerprint
3192016-03-23T16:01:53  <sipa> whether or not you make encryption mandatory is indepebdent
3202016-03-23T16:02:08  <wumpus> right
3212016-03-23T16:02:20  <jonasschnelli> wumpus: Yes. The enc BIP i wrote does verify the fingerprint (base58c(ripemd160(sha256(pubkey))).
3222016-03-23T16:03:13  <jonasschnelli> Okay. I might want to add that to the BIP: once encryption is initialized, unencrypted traffic would lead to a disconnect and lost of the enc session.
3232016-03-23T16:03:14  <wumpus> jonasschnelli: but that's somewhat of a UI issue, how to show the fingerprint and make the user verify it, before storing it
3242016-03-23T16:03:32  <sipa> i'll read it later... the hardest problem imho is how do you not reveal your identity to those who do nkt already know it
3252016-03-23T16:03:38  <sipa> *not
3262016-03-23T16:03:50  <jonasschnelli> wumpus: Yes. I left that open in the BIP. Most easiest solution would be to just NOT connect if the fingerprint not matches the prev./prestored once
3272016-03-23T16:03:51  *** wallet42 has quit IRC
3282016-03-23T16:03:52  <wumpus> yes I think that makes sense: once the connection chooses encryption or authentication, all traffic from then on should stick to it
3292016-03-23T16:04:02  *** wallet42 has joined #bitcoin-core-dev
3302016-03-23T16:04:06  *** paveljanik has quit IRC
3312016-03-23T16:04:10  <jonasschnelli> sipa: Yes. That is a different problem not addresses in the BIP(s)
3322016-03-23T16:04:52  <jonasschnelli> sipa: You might also like the idea of the SHA256 context that hashes all the comms to identify missing ENC messages.
3332016-03-23T16:04:52  <gmaxwell> jonasschnelli: I don't think it's a different problem, in that the wrong crypto design makes it impossible to avoid having both sides broadcasting a persistant identity.
3342016-03-23T16:05:12  <wumpus> in any case props to jonasschnelli for starting work on this, I'm sure this won't be finalized in one day, but initiative matters
3352016-03-23T16:06:16  <jonasschnelli> gmaxwell: I mean you could do the same as SSH does. Ask the user if when he first connect to a unknown node (fingerprint), store the fingerprint and warn/reject connecting to changed fingerprints.
3362016-03-23T16:06:18  <sipa> yeah, i think we need this
3372016-03-23T16:06:28  <sipa> jonasschnelli: that means a node must reveal its fingerprint
3382016-03-23T16:06:34  <gmaxwell> jonasschnelli: that is the opposite of what we want.
3392016-03-23T16:06:37  <sipa> that would lead to a trivial... eh... fingerprinting attack
3402016-03-23T16:06:43  <jonasschnelli> But maybe there is some clever method to spread identities over Addrman? Not sure although.
3412016-03-23T16:07:15  *** wallet42 has quit IRC
3422016-03-23T16:07:18  <gmaxwell> jonasschnelli: what sipa and I are referring to is that we don't want bitcoin nodes sending data that distinguishes them (esp passively) from other nodes.
3432016-03-23T16:07:19  <sipa> that's something i've suggested in the past, but i'm not sure anymore that's a good idea
3442016-03-23T16:07:59  *** wallet42 has joined #bitcoin-core-dev
3452016-03-23T16:08:04  <jonasschnelli> gmaxwell: right. Thats why I proposed only fingerprint possibilities to connecting node AFTER they have successfully authed.
3462016-03-23T16:08:27  <sipa> how can you authenticate without knowing who you're authenticating to?
3472016-03-23T16:08:41  <sipa> (i should shut up and read the bip)
3482016-03-23T16:09:01  <jonasschnelli> sipa: the remote node would only reveal its identity if it accepts the auth (already know the pubkey / preshared).
3492016-03-23T16:09:34  <jonasschnelli> sipa: remote node checks pubkey (might ask the node op. to allow access), then reveal its pubkey, etc.
3502016-03-23T16:10:04  <jonasschnelli> Fingerprinting would only be possible for "authorized_peers".
3512016-03-23T16:10:31  <jonasschnelli> BIP is here if you want to read it: https://github.com/bitcoin/bips/compare/master...jonasschnelli:2016/03/auth_enc?expand=1
3522016-03-23T16:10:54  *** wallet42 has quit IRC
3532016-03-23T16:17:57  *** fengling has joined #bitcoin-core-dev
3542016-03-23T16:18:29  *** wallet42 has joined #bitcoin-core-dev
3552016-03-23T16:18:39  *** wallet42 has joined #bitcoin-core-dev
3562016-03-23T16:22:56  *** fengling has quit IRC
3572016-03-23T16:25:15  *** wallet42 has quit IRC
3582016-03-23T16:25:25  *** wallet42 has joined #bitcoin-core-dev
3592016-03-23T16:27:04  *** wallet42 has quit IRC
3602016-03-23T16:27:31  *** wallet42 has joined #bitcoin-core-dev
3612016-03-23T16:31:14  *** alexuy has quit IRC
3622016-03-23T16:31:16  *** wallet42 has quit IRC
3632016-03-23T16:42:35  <GitHub198> [bitcoin] laanwj pushed 2 new commits to master: https://github.com/bitcoin/bitcoin/compare/09a079e6484a...e5c35119e967
3642016-03-23T16:42:36  <GitHub198> bitcoin/master df9e923 João Barbosa: Fix lockunspents help message
3652016-03-23T16:42:36  <GitHub198> bitcoin/master e5c3511 Wladimir J. van der Laan: Merge #7646: Fix lockunspent help message...
3662016-03-23T16:42:40  <GitHub139> [bitcoin] laanwj closed pull request #7646: Fix lockunspent help message (master...support/fix-lockunspent-help-message) https://github.com/bitcoin/bitcoin/pull/7646
3672016-03-23T16:50:16  *** fengling has joined #bitcoin-core-dev
3682016-03-23T16:51:25  *** alexuy has joined #bitcoin-core-dev
3692016-03-23T16:59:02  *** wallet42 has joined #bitcoin-core-dev
3702016-03-23T17:00:06  <cfields> jonasschnelli: not sure i discussed in the conversation above, but it's not clear from your BIP if the auth message carries the typical message header as well
3712016-03-23T17:00:47  <cfields> (as a prefix i mean, in addition to the wrapped one)
3722016-03-23T17:06:49  *** wallet42 has quit IRC
3732016-03-23T17:07:39  *** Chris_Stewart_5 has quit IRC
3742016-03-23T17:10:18  *** Tasoshi has joined #bitcoin-core-dev
3752016-03-23T17:27:43  *** murch has joined #bitcoin-core-dev
3762016-03-23T17:29:29  *** Chris_Stewart_5 has joined #bitcoin-core-dev
3772016-03-23T18:02:54  *** Don_John has joined #bitcoin-core-dev
3782016-03-23T18:04:38  *** mrkent has joined #bitcoin-core-dev
3792016-03-23T18:04:41  *** Don_John has quit IRC
3802016-03-23T18:12:33  *** jannes has quit IRC
3812016-03-23T18:22:53  *** jtimon has quit IRC
3822016-03-23T18:22:56  *** fengling has quit IRC
3832016-03-23T18:27:32  <gmaxwell> jonasschnelli: I would normally expect this to work so that evey (supporting) conenction was mac/encrypted with ephemeral keys; and then inside that channel, varrious bits of authentiction may or may not happen. This way that even if the auth is deanonymizing it would only be so for an acive attacker; also all communication then ends up private from a global passive observer, even if there are n
3842016-03-23T18:27:38  <gmaxwell> o auth credientials available.
3852016-03-23T18:30:45  <gmaxwell> as far as the auth goes, I think for bitcoin symmetric mutual auth is not really a perfect fit; -- often the connection-accepting side wants to know that their resources are not being wasted by sybils, but don't really care who it is otherwise... and clients want to know they're talking to the host they expect, but really don't want it to know who they are.   The exception is basically when you
3862016-03-23T18:30:51  <gmaxwell> have your own trusted peers, in which case symmetric auth is probably fine.
3872016-03-23T18:33:35  *** frankenmint has joined #bitcoin-core-dev
3882016-03-23T18:42:35  *** frankenmint has quit IRC
3892016-03-23T18:45:12  *** asdfdsas has joined #bitcoin-core-dev
3902016-03-23T18:45:15  <jonasschnelli> cfields: hmm... IIRC I wrote in both bips that the wrapped messages also contains the HDR.
3912016-03-23T18:45:53  *** alexuy has quit IRC
3922016-03-23T18:46:00  <cfields> jonasschnelli: yes, but it's not clear if that's in addition to, or instead of, the normal header
3932016-03-23T18:46:14  * jonasschnelli is processing gmaxwell answer (takes couple of minutes)
3942016-03-23T18:46:39  <jonasschnelli> cfields: thanks... will clarify that in the BIP.
3952016-03-23T18:46:43  *** fanatid has joined #bitcoin-core-dev
3962016-03-23T18:47:24  <cfields> jonasschnelli: note that imo if the answer is "instead of", that would likely be an issue
3972016-03-23T18:47:53  *** frankenmint has joined #bitcoin-core-dev
3982016-03-23T18:49:11  <jonasschnelli> cfields: both messages (container and the wrapped message) would have valid message headers. This would make sense I guess?
3992016-03-23T18:49:32  <cfields> jonasschnelli: perfect, thanks for clarifying :)
4002016-03-23T18:49:46  *** frankenmint has quit IRC
4012016-03-23T18:50:15  *** laurentmt has joined #bitcoin-core-dev
4022016-03-23T18:51:58  <sipa> jonasschnelli: i would expect any authentication information to be sent instead of the 4-byte checksum there is now
4032016-03-23T18:52:44  <jonasschnelli> sipa: Yes. But IMO its most straightforward to wrap an existing command. No changes in the message / header processing would be required.
4042016-03-23T18:53:08  <jonasschnelli> The "enc" message wrapper would provide the encryption checksum (for AES IV).
4052016-03-23T18:54:08  <sipa> that's oretty inefficient
4062016-03-23T18:54:52  <jonasschnelli> sipa: You mean the message wrapper approach? Its basically a "header" for the message-with-a-header...
4072016-03-23T18:54:55  <cfields> sipa: i was thinking the same thing
4082016-03-23T18:55:24  <jonasschnelli> I kinda like the wrapping approach. It reflects and optional encryption layer.
4092016-03-23T18:55:49  <sipa> and it's abit naive to think you don't need tovchange existing procesng; you're not going to implement encryptiin for every command separately anyway, so you'll want to do it generically
4102016-03-23T18:55:53  *** dgenr8 has quit IRC
4112016-03-23T18:55:53  <jonasschnelli> And does resect an easy implementation (not sure if this is an argument though)
4122016-03-23T18:56:01  <gmaxwell> it results in lots of digital signatures, which is very slow.
4132016-03-23T18:56:07  <sipa> (sorry for typing, edge)
4142016-03-23T18:56:15  *** achow101 has quit IRC
4152016-03-23T18:56:16  <cfields> sipa: hmm actually though, that means 2 possible header sizes. that's kinda nasty for parsing
4162016-03-23T18:56:25  *** dgenr8 has joined #bitcoin-core-dev
4172016-03-23T18:56:28  <jonasschnelli> No...
4182016-03-23T18:56:48  <jonasschnelli> You have a message type "enc" that has a data set that contain a "normal" message (lets say a "version" message).
4192016-03-23T18:56:57  <sipa> cfields: implement it as a layer in between tcp and messages
4202016-03-23T18:57:00  <sipa> ?
4212016-03-23T18:57:34  <jonasschnelli> The "enc" message has its own normal message p2p header, then some encryption relevant data (hash / iv, maybe the same), then the wrappen "version" message header&data.
4222016-03-23T18:57:36  <cfields> sipa: could do, sure, but i'm not sure it's worth the added complexity?
4232016-03-23T18:58:13  <jonasschnelli> So you could pare the enc message with the standard process message function, then decrypt, and process the wrapped command with the same logic.
4242016-03-23T18:58:23  <gmaxwell> cfields: what sipa suggests seems most natural to me, you could think of it is a secure socket layer.
4252016-03-23T18:59:31  <sipa> jonasschnelli: so an inv becomes goes from 60 bytes to 112 bytes?
4262016-03-23T18:59:38  *** fengling has joined #bitcoin-core-dev
4272016-03-23T18:59:54  <jonasschnelli> I have also though about adding the encryption on a different layer But, because I also want to do the implementation, I was looking for something that can be implemented easily.
4282016-03-23T19:00:00  <sipa> or if you add a digital signature, 33 even more
4292016-03-23T19:00:15  <jonasschnelli> sipa: Yes. That's why I though enc should be optional by message.
4302016-03-23T19:00:30  <jonasschnelli> We could remove the message header from the submessage though.
4312016-03-23T19:00:47  <sipa> jonasschnelli: as i said, i disagree with that- ideally we move to a form where everything is just encrypted imho
4322016-03-23T19:00:49  <jonasschnelli> sipa: enc does not use DSA. Auth does.
4332016-03-23T19:01:02  <sipa> well yes, but you shoukd have both
4342016-03-23T19:01:06  <sipa> *should
4352016-03-23T19:01:21  <jonasschnelli> You mean signing the encrypted message?
4362016-03-23T19:01:41  <gmaxwell> jonasschnelli: the way you're doing authentication provides both authentication and non-repudiation. The latter is sometimes useful, but usually not--- the cost of it though is a really massive overhead compared to plain authentication.
4372016-03-23T19:01:43  <cfields> gmaxwell: hmm, seems jonasschnelli and I are thinking in terms of individual opt-in messages, and you and sipa are thinking in terms of the entire stream.
4382016-03-23T19:01:59  <sipa> i'm fine with doing it per message
4392016-03-23T19:02:04  <sipa> that's certainly easier
4402016-03-23T19:02:11  <sipa> but it shouldn't have such high overhead
4412016-03-23T19:02:42  <gmaxwell> cfields: working with the entire stream makes it easier to avoid attacks from selective dropping and replay.
4422016-03-23T19:02:49  <jonasschnelli> sipa: I agree. We might want to optimize the overhead.
4432016-03-23T19:03:47  <gmaxwell> and doing a dsa verify per message would be a noticible CPU load... and provides no particular value over a more traditional authentication scheme.
4442016-03-23T19:03:50  <jonasschnelli> Somehow i kinda likes to dual approach (encrypted and unencrypted messages) because of its CPU and bandwidth optimizations. I don't see a big value in encrypting blocks.
4452016-03-23T19:04:09  <jonasschnelli> gmaxwell: Right. I only proposes DSA for a one-time-auth to initiate the enc.
4462016-03-23T19:04:22  <sipa> jonasschnelli: using the more private approach shouldn't be more expensive :)
4472016-03-23T19:04:28  <jonasschnelli> auth is stateless (no session), enc initiate a session.
4482016-03-23T19:04:39  <sipa> jonasschnelli: encryption does not provide authenticity
4492016-03-23T19:04:46  <gmaxwell> Also one gain of an encrypted transport would be being able to reduce network attack surface to just 'trusted' peers, which mixing things cannot achieve.
4502016-03-23T19:04:53  <sipa> you *need* authentication for all data sent
4512016-03-23T19:05:12  <sipa> otherwise there may he attacks where an attacker modifies the stream
4522016-03-23T19:05:24  <jonasschnelli> sipa: For that purpose i have added the SHA256 context that starts with the authentication response.
4532016-03-23T19:05:47  * jonasschnelli needs to go afk soon.
4542016-03-23T19:05:54  <gmaxwell> jonasschnelli: standard encrypted transport, if done with a fast cipher/authentication can run with near memcpy speeds, it wouldn't necessarily make more than a negligible performance impact. And eventually there should be no whole 'blocks' sent except for history catchup.
4552016-03-23T19:06:20  <jonasschnelli> gmaxwell: +1 agree.
4562016-03-23T19:06:45  <jonasschnelli> Well,.. right. Once encryption is initiated it should cover everything. Agree.
4572016-03-23T19:07:00  <jonasschnelli> I try to find a more optimized message format (wrapper)
4582016-03-23T19:07:36  <jonasschnelli> but mind sipas contant time AES pr. :)
4592016-03-23T19:09:12  <gmaxwell> so, e.g. if we had something that initilized at handshake with ephemeral keys, then inside that identity-auth may or may not happen.-- so then a passive observer wouldn't even learn if you were using auth or not. (esp if where auth isn't used if we insert a dummy message of the same size)
4602016-03-23T19:11:16  <jonasschnelli> gmaxwell: my enc proposal uses ephemeral keys (ECDH) and right, with preshared key, an observer would not notice the auth (only the enc).
4612016-03-23T19:11:29  <gmaxwell> I'm not sure that we'd want to use AES for the normal connections; just because without hardware support, timing attack immune AES is not very fast.  This is why chacha20-poly1305 is now in TLS and SSH; to be used on the many hosts where AES-GCM is slow.
4622016-03-23T19:12:36  <sipa> typical advice to encrypt first, and then put a mac on the encrypted form
4632016-03-23T19:12:46  <jonasschnelli> I need to go afk. Happy to discuss that more in detail later. Thanks for the feedback, also happy to get feedback on the bitcoin-dev mail.
4642016-03-23T19:15:02  <gmaxwell> The encrypted structure you have is not MACed, so junk can be injected into the stream. Internally authed messages wouldn't suffer from that becuase they're signed... but this kind of structure ends up with attacks where you corrupt some data and then learn something about the content based on if the far end changes its behavior or not.
4652016-03-23T19:20:52  <gmaxwell> One thing to keep in mind is that the word 'authenticate' has an overloaded meaning.  It can mean the function of a keyed mac to make sure that the data is data created by someone knowing a particular secret.  Or it can mean to establish that the party you are communicating with is the party you think you are (that there is no MITM). Sometimes we use some of the same tools for these things, usua
4662016-03-23T19:20:52  <gmaxwell> lly not.
4672016-03-23T19:20:52  <gmaxwell> so regardless of what is done with identity-authentication; the outer transport should be using authenticated-encryption, so that any corruption is immediately rejected before any further application processing which might reveal information about the state of the encrypted stream.
4682016-03-23T19:20:52  <gmaxwell> amusingly, since we already use this sha256 based "checksum", a switch to an authenticated/encrypted transport might actually make the network communications faster.
4692016-03-23T19:20:52  <gmaxwell> (if it were faster than the sha256)
4702016-03-23T19:22:04  *** go1111111 has quit IRC
4712016-03-23T19:32:29  *** fanatid has quit IRC
4722016-03-23T19:33:03  <cfields> gmaxwell: heh, good point
4732016-03-23T19:33:51  *** go1111111 has joined #bitcoin-core-dev
4742016-03-23T19:34:56  *** fengling has quit IRC
4752016-03-23T19:51:39  *** frankenmint has joined #bitcoin-core-dev
4762016-03-23T19:52:01  *** Thireus has quit IRC
4772016-03-23T19:52:38  *** Thireus has joined #bitcoin-core-dev
4782016-03-23T19:56:43  *** frankenmint has quit IRC
4792016-03-23T20:02:40  *** gevs has quit IRC
4802016-03-23T20:03:17  *** fengling has joined #bitcoin-core-dev
4812016-03-23T20:19:07  *** laurentmt has quit IRC
4822016-03-23T20:28:46  *** achow101 has joined #bitcoin-core-dev
4832016-03-23T20:35:39  *** d_t has joined #bitcoin-core-dev
4842016-03-23T20:41:22  *** PRab has quit IRC
4852016-03-23T20:42:58  *** PRab has joined #bitcoin-core-dev
4862016-03-23T20:53:08  *** frankenmint has joined #bitcoin-core-dev
4872016-03-23T20:58:39  *** frankenmint has quit IRC
4882016-03-23T22:08:08  *** Guyver2 has quit IRC
4892016-03-23T22:25:06  *** rubensayshi has quit IRC
4902016-03-23T22:27:04  *** rubensayshi has joined #bitcoin-core-dev
4912016-03-23T22:31:17  *** droark has joined #bitcoin-core-dev
4922016-03-23T22:32:03  *** d_t has quit IRC
4932016-03-23T22:41:36  *** fengling has quit IRC
4942016-03-23T22:42:58  *** paveljanik has joined #bitcoin-core-dev
4952016-03-23T23:01:13  *** shesek has quit IRC
4962016-03-23T23:04:22  *** Don_John has joined #bitcoin-core-dev
4972016-03-23T23:05:18  *** zooko has joined #bitcoin-core-dev
4982016-03-23T23:05:37  *** sipa has quit IRC
4992016-03-23T23:05:44  *** sipa has joined #bitcoin-core-dev
5002016-03-23T23:06:08  *** sipa is now known as Guest93735
5012016-03-23T23:06:12  *** Guest93735 has joined #bitcoin-core-dev
5022016-03-23T23:06:24  *** Guest93735 is now known as sipax
5032016-03-23T23:10:45  *** fengling has joined #bitcoin-core-dev
5042016-03-23T23:14:06  *** zooko has quit IRC
5052016-03-23T23:16:37  *** BCB has joined #bitcoin-core-dev
5062016-03-23T23:17:59  <BCB> Any idea why bitcoin 0.12 would be disconnection from an ipv6 addy with "socket recv error Connection reset by peer (104)" after receiving pong message
5072016-03-23T23:20:10  *** AaronvanW has quit IRC
5082016-03-23T23:22:40  <sipax> BCB: the only reason can be that the network layer actually returned a "Connection reset by peer" error...
5092016-03-23T23:23:06  <sipax> the most likely reason for which is that the remote side actually disconnected
5102016-03-23T23:23:40  <BCB> sipax: what is the x in your nic?
5112016-03-23T23:24:17  <BCB> sipax so the remote side will just reconnect?
5122016-03-23T23:24:57  <sipax> i don't know whether it will; only that based on the information you've given me, it seems that it does
5132016-03-23T23:26:15  *** paveljanik has quit IRC
5142016-03-23T23:27:09  *** frankenmint has joined #bitcoin-core-dev
5152016-03-23T23:28:21  <gmaxwell> hm. so I have a node that was offline for a week throwing "Bitcoin is downloading blocks" -- it's not caught up, and yet it shows no blocks inflight on any peers
5162016-03-23T23:28:28  <BCB> * looks at logs
5172016-03-23T23:28:50  <gmaxwell> and synced_blocks/synced_headers is -1 on every peer.
5182016-03-23T23:29:00  <sipax> gmaxwell: how long has the node been up?
5192016-03-23T23:29:18  <gmaxwell> 45 minutes.
5202016-03-23T23:29:31  <gmaxwell> oh sorry 15 minutes
5212016-03-23T23:30:12  <sipax> i've seen that before, but it always resolved itself
5222016-03-23T23:30:24  <gmaxwell> first connection was 23:15:25.
5232016-03-23T23:31:08  <gmaxwell> and this is a checkout of 0.12 from a few minutes before it started.
5242016-03-23T23:31:24  <sipax> wait until there's been a new block
5252016-03-23T23:31:53  <sipax> (we should still investigate, but if it resolves on itself on the first block, i'm not so worried)
5262016-03-23T23:31:56  <gmaxwell> sure, I don't care if this particular host is delayed.. but what data would be useful to resolve the bug?
5272016-03-23T23:32:17  <gmaxwell> I think I've been block inved while this was up.
5282016-03-23T23:32:48  <sipax> was this after ending a reindex?
5292016-03-23T23:32:59  <sipax> or maybe a lengthy activating best chain?
5302016-03-23T23:33:10  <gmaxwell> no. host cleanly shut itself down a week ago due to out of space (my debug lot made it to >100GB)
5312016-03-23T23:33:24  <gmaxwell> it came up, connected two block,
5322016-03-23T23:34:04  <gmaxwell> (402971 and 402972) and then hasn't made progress.
5332016-03-23T23:34:19  <gmaxwell> 2016-03-23 23:20:48 got inv: block 000000000000000000342cb0954d2b28c5c41fe0d1afa6a262ac0cef29394c28  new peer=21
5342016-03-23T23:34:22  <gmaxwell> 2016-03-23 23:20:48 sending: getheaders (997 bytes) peer=21
5352016-03-23T23:34:25  <gmaxwell> 2016-03-23 23:20:48 getheaders (402972) 000000000000000000342cb0954d2b28c5c41fe0d1afa6a262ac0cef29394c28 to peer=21
5362016-03-23T23:35:44  <gmaxwell> looks like that peer may have not responded to that getheaders.
5372016-03-23T23:36:22  <gmaxwell> that peer claims
5382016-03-23T23:36:26  <gmaxwell>     "subver": "/Satoshi:0.11.2/",
5392016-03-23T23:36:30  <gmaxwell>     "startingheight": 402972,
5402016-03-23T23:36:55  <gmaxwell> which is my height, my guess is that it's a fake node that just reflects whatever my starting height is.
5412016-03-23T23:38:36  *** fengling has quit IRC
5422016-03-23T23:39:08  <gmaxwell> and just ignored the getheaders request.
5432016-03-23T23:40:47  *** gevs has joined #bitcoin-core-dev
5442016-03-23T23:41:21  <BCB> gmaxwell: won't a misbehaving node be disconnected?
5452016-03-23T23:42:22  <sipax> BCB: in some cases where it's detectable...
5462016-03-23T23:42:30  <gmaxwell> BCB: impossible.  _some_ kinds of very specific, detectable misbehavior will get things disconnected; but other kinds cannot be reliably detected.
5472016-03-23T23:43:11  <BCB> what's the ip
5482016-03-23T23:44:10  <gmaxwell> sipax: okay the initial wedge is because the first thing to connect to my node was my local p2pool daemon, which can't usefully reply
5492016-03-23T23:44:13  <gmaxwell> 2016-03-23 23:15:25 initial getheaders (402971) to peer=1 (startheight:0)
5502016-03-23T23:44:55  <gmaxwell> the wedge would have resolved when peer=21 offered me that block, but peer=21 didn't reply to the getheaders (as I'm in IBD, and so headers fetched instead of pulling it)
5512016-03-23T23:45:44  <gmaxwell> so someone with a fake node that relays blocks but doesn't conform to the protocol more generally seems to be unintentionally prolonging the wedge. I expect it will resolve when another peer offers me a block first.
5522016-03-23T23:59:17  <gmaxwell> as predicted, it unwedged.