--- Day changed Sun Mar 06 2016 03:39 -!- jtimon [~quassel@35.31.134.37.dynamic.jazztel.es] has quit [Ping timeout: 268 seconds] 06:09 -!- andytoshi [~andytoshi@unaffiliated/andytoshi] has joined #secp256k1 06:36 -!- waxwing [~waxwing@62.205.214.125] has quit [Read error: Connection reset by peer] 06:38 -!- waxwing [~waxwing@62.205.214.125] has joined #secp256k1 07:09 -!- jtimon [~quassel@35.31.134.37.dynamic.jazztel.es] has joined #secp256k1 10:12 -!- [b__b] [~b__b]@ec2-54-85-45-223.compute-1.amazonaws.com] has quit [Remote host closed the connection] 10:14 -!- [b__b] [~b__b]@ec2-54-85-45-223.compute-1.amazonaws.com] has joined #secp256k1 13:22 -!- andytoshi [~andytoshi@unaffiliated/andytoshi] has quit [Read error: Connection reset by peer] 16:19 -!- jtimon [~quassel@35.31.134.37.dynamic.jazztel.es] has quit [Ping timeout: 276 seconds] 17:29 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has joined #secp256k1 17:30 < rusty> Dumb q re: secp256k1_ecdh(). Comment says an invalid scalar can make it fail, but can an invalid point? 17:32 < rusty> Hmm, seems not, looking at implementation. 17:43 < gmaxwell> rusty: ECDH takes a pubkey object, which you would have previously deseralized. 17:43 < gmaxwell> The deseralization could fail. 17:44 < gmaxwell> if the pubkey object is invalid I would expect it to trigger internal error. 17:48 < gmaxwell> Right so ecdh calls pubkey_load, which ARG_CHECK(!secp256k1_fe_is_zero(&ge->x)); so if your pubkey object is null you'll ARG_CHECK at the top of secp256k1_ecdh, if it's non-null but the product of a failed deseralize it will ARG_CHECK in the pubkey_load. 17:49 < gmaxwell> We should probably write a document on this. 17:57 < gmaxwell> Maybe a guide oriented around application. "Using libsecp256k1 for ECDH. You call: x/y/z. You must handle errors: XYQ." 18:32 < rusty> gmaxwell: yep, thanks, I am writing an RFC-style doc for lightning, which specifies you must check this. 18:45 -!- amiller [~socrates1@unaffiliated/socrates1024] has quit [Ping timeout: 276 seconds] 18:52 -!- Guest12566 [~socrates1@li175-104.members.linode.com] has joined #secp256k1 19:56 -!- rusty [~rusty@pdpc/supporter/bronze/rusty] has quit [Ping timeout: 260 seconds] 20:35 -!- Guest12566 is now known as amiller 20:35 -!- amiller is now known as Guest28909 20:35 -!- Guest28909 [~socrates1@li175-104.members.linode.com] has quit [Changing host] 20:35 -!- Guest28909 [~socrates1@unaffiliated/socrates1024] has joined #secp256k1 20:35 -!- Guest28909 is now known as amiller