--- Log opened Fri Aug 07 00:00:42 2020 05:14 -!- reallll [~belcher@unaffiliated/belcher] has joined #secp256k1 05:17 -!- belcher_ [~belcher@unaffiliated/belcher] has quit [Ping timeout: 246 seconds] 05:18 -!- reallll is now known as belcher 07:45 -!- dongcarl [~dongcarl@unaffiliated/dongcarl] has quit [Read error: Connection reset by peer] 07:45 -!- dongcarl [~dongcarl@unaffiliated/dongcarl] has joined #secp256k1 09:04 -!- luke-jr [~luke-jr@unaffiliated/luke-jr] has quit [Quit: ZNC - http://znc.sourceforge.net] 09:04 -!- luke-jr [~luke-jr@unaffiliated/luke-jr] has joined #secp256k1 09:51 -!- roconnor_ [~roconnor@host-45-58-211-237.dyn.295.ca] has joined #secp256k1 09:52 -!- roconnor [~roconnor@host-45-78-205-48.dyn.295.ca] has quit [Disconnected by services] 09:52 -!- roconnor_ is now known as roconnor --- Log closed Fri Aug 07 10:58:26 2020 --- Log opened Fri Aug 07 10:58:26 2020 12:11 -!- sorcus [~sorcus@2a01:7e01:e002:8ffc:caf2:ef3d:542:bc0e] has joined #secp256k1 12:16 < sorcus> Can I convert affine coordinates to jacobi (not for initial point)? 12:16 < sorcus> Hi. 12:16 < sipa> sure, just set z=1 12:27 < sorcus> sipa: Hmm... Then for what secp256k1_ge_set_gej used? 12:27 < sipa> converting a jacobi coordinate to affine 12:32 < roconnor> secp256k1_gej_set_ge will set z=1 12:33 < sorcus> sipa: Yeah, but if i convert jacobi to affine via secp256k1_ge_set_gej, i can't convert then affine to original jacobi (which i pass to secp256k1_ge_set_gej), right?. 12:33 < sipa> sorcus: they're the same point 12:33 < sipa> the z coordinate will differ of course 12:33 < sipa> but that shouldn't matter 12:35 < sipa> sorcus: what do you need that for? 12:38 < sorcus> sipa: I want to compare some points without converting to affine coordinates. 12:38 < sipa> sorcus: we have a gej_equal somewhere 12:39 < sipa> but otherwise, you can also subtract them and see if the result is infinity 12:40 < sorcus> sipa: https://gist.github.com/MrSorcus/c71dc280ec3a261e6e40c3445bfe7c83#file-affine-txt - here affine and https://gist.github.com/MrSorcus/c71dc280ec3a261e6e40c3445bfe7c83#file-jacobi-txt - here jacobi. And they are different, but for the same point... 12:40 < sipa> convert the affine one to gej, and then subtract the other one 12:41 < sipa> and see if the result is infinity 12:41 < sipa> really what you want is a check x1*z2^2 == x2 and y1*z2^3 == y2 12:42 < sipa> sorcus: a gej's x coordinate does not tell you anything 12:43 < sipa> you need x and z at least (and y too, if you care about the point's sign) 12:43 < sorcus> sipa: Yeah, it's just an example. 12:43 < sorcus> sipa: Ok, thank you :-) 13:00 < sorcus> sipa: Hmm... For my use case fe_inv_var much faster then fe_inv... 13:00 < sipa> sorcus: of course 13:00 < sipa> _var functions in general are faster 13:01 < sipa> but they're not constant time, so don't use them in things that deal with private oeys 13:01 < sipa> or other secret information 13:02 < sorcus> sipa: Yeah, i understand. I used this for personal use case only. 13:09 < sipa> then by all means, use _var functions 13:10 < sorcus> sipa: Ok, can i ask another question? 13:12 < sorcus> sipa: What differs between field_5x52_asm_impl.h and field_5x52_int128_impl.h? Should i use asm_impl or int128_impl will be better? 13:14 < sipa> asm only works on x86_64, in some compilers 13:15 < sipa> int128 only works if you have __int128 support in your compiler 13:15 < sipa> if you can, use asm 13:15 < sipa> (it's the default when running ./configure) 13:15 < sorcus> sipa: Ok, thanks :-) 14:15 < sorcus> sipa: Good night :-) 19:29 -!- fanquake [sid369002@gateway/web/irccloud.com/x-olctokxewerkqszl] has quit [Ping timeout: 244 seconds] 19:34 -!- Guest91961 [sid369002@gateway/web/irccloud.com/x-zekgqkmvbqqcurtw] has joined #secp256k1 19:35 -!- Guest91961 [sid369002@gateway/web/irccloud.com/x-zekgqkmvbqqcurtw] has quit [Client Quit] 19:35 -!- Guest91961 [sid369002@gateway/web/irccloud.com/x-ahfvlybjfkwblmbw] has joined #secp256k1 19:54 -!- Guest91961 [sid369002@gateway/web/irccloud.com/x-ahfvlybjfkwblmbw] has quit [Ping timeout: 260 seconds] 19:57 -!- Guest91961 [sid369002@gateway/web/irccloud.com/x-pvvhjyneczendkuj] has joined #secp256k1 19:58 -!- Guest91961 [sid369002@gateway/web/irccloud.com/x-pvvhjyneczendkuj] has quit [Client Quit] 21:48 -!- Guest91961 [sid369002@gateway/web/irccloud.com/x-ryqjzqmihwjotfar] has joined #secp256k1 22:23 -!- Guest91961 [sid369002@gateway/web/irccloud.com/x-ryqjzqmihwjotfar] has quit [] --- Log closed Sat Aug 08 00:00:42 2020