--- Log opened Tue Mar 22 00:00:32 2022 00:07 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 00:07 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 00:20 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 00:21 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 01:02 -!- ghost43_ [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 01:03 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 01:29 -!- ghost43_ [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 01:29 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 01:55 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Ping timeout: 240 seconds] 01:56 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 02:08 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 02:09 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 03:00 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 03:01 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 03:26 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 03:27 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 03:50 -!- darosior [~darosior@194.36.189.246] has quit [Remote host closed the connection] 03:51 -!- darosior [~darosior@194.36.189.246] has joined #secp256k1 04:18 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 04:18 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 04:22 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 04:22 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 05:06 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 05:06 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 05:44 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 05:44 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 06:01 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 06:02 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 06:20 -!- ghost43_ [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 06:23 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Ping timeout: 240 seconds] 07:13 -!- ghost43_ [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 07:14 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 07:14 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 07:17 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 08:06 -!- ghost43_ [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 08:09 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Ping timeout: 240 seconds] 08:21 -!- ghost43_ [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 08:21 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 08:27 -!- halosghost [~halosghos@user/halosghost] has joined #secp256k1 09:00 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 09:00 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 09:24 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 09:24 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 09:47 < halosghost> I have what I believe is another stupid qeustion 09:47 < halosghost> s/eu/ue/ 09:52 < halosghost> is there an exposed function to determine if a public key / point is even/odd? 10:01 < sipa> just look at the first character of the compressed encoding, or the last of an uncompressed 10:04 < halosghost> that's kind of what I thought 10:06 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 10:06 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 10:14 < halosghost> sipa: and given that I'm working with compressed points, the test is genuinely as simple as the first byte being equal to either 0x03 or 0x02 (for odd or even)? 10:14 < sipa> tes 10:14 < sipa> yes 10:15 < sipa> (of the serialization) 10:15 < halosghost> right 10:15 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 10:16 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 10:24 -!- ghost43_ [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 10:24 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 11:04 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 11:06 -!- ghost43_ [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 11:30 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 11:30 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 12:07 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 12:07 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 12:20 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 12:20 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 12:44 < halosghost> is there a good place for me to read further on what secp256k1_fe_is_quad_var() does / how it works? 12:44 < sipa> It tests whether a field element is the square of another field element. 12:44 < roconnor> AFAIU it has been removed. 12:45 < halosghost> mm 12:46 < sipa> Half of the non-zero field elements (and zero) are the square of a field element. The other half are the negation of a square of a field element. 12:46 < sipa> And indeed, it was removed. 12:48 < halosghost> andytoshi: can you clarify for me why `pedersen_commitment_serialize()` does this: output[0] = 9 ^ secp256k1_fe_is_quad_var(&ge.y) ? 12:48 < halosghost> (I'm struggling to figure out what that would be doing 12:48 < halosghost> ) 12:49 < roconnor> ... I guess maybe it is still in -zkp. 12:50 < andytoshi> yes, we still use quadness in -zkp for pedersen commitments. it would hardfork liquid to change this 12:51 < andytoshi> halosghost: the first byte of pedersen commitments is 8 or 9, depending on parity 12:51 < roconnor> not parity, squareness. 12:51 < roconnor> ... depending on your definition of parity. 12:54 < halosghost> oh, interesting 12:54 < halosghost> that's very clarifying 12:54 < halosghost> andytoshi: thank you! 12:55 < sipa> In this regard field element are pretty similar to real numbers: half of them are the square (the positive ones), the other half are the negation of squares. 12:55 < roconnor> It might be helpful to note there are three way of dividing up the pairs of points with the same x-coordiante. 12:55 < sipa> * are a square 12:55 < roconnor> 1) base on even / oddness 12:55 < roconnor> 2) based on upper half or lower half of the field elements. 12:56 < roconnor> 3) based on squareness or nonsquareness 12:57 < roconnor> (of course you can invent other arbitrarly complicated schemes as well on top of these 3) 12:57 < sipa> Well all three have the property that negating an element changes the character. 12:58 < sipa> I guess (oddness XOR upperhalfness XOR squareness) also has that property. 13:10 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 13:11 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 13:29 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 13:30 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 14:12 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 14:12 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 14:29 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 14:29 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 14:32 -!- halosghost [~halosghos@user/halosghost] has quit [Ping timeout: 240 seconds] 14:34 -!- halosghost [~halosghos@user/halosghost] has joined #secp256k1 14:37 -!- halosghost [~halosghos@user/halosghost] has quit [Client Quit] 15:03 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 15:04 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 15:21 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 15:22 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 16:14 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 16:14 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 16:18 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 16:19 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 17:03 -!- real_or_random [~real_or_r@user/real-or-random/x-4440763] has quit [Quit: ZNC 1.8.2 - https://znc.in] 17:03 -!- real_or_random [~real_or_r@user/real-or-random/x-4440763] has joined #secp256k1 17:10 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 17:11 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 17:31 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 17:32 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 18:00 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 18:00 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 18:22 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 18:23 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 19:11 -!- luke-jr [~luke-jr@user/luke-jr] has quit [Read error: Connection reset by peer] 19:16 -!- luke-jr [~luke-jr@user/luke-jr] has joined #secp256k1 19:29 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 19:29 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 20:20 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 20:21 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 20:26 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 20:26 -!- ghost43_ [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 21:11 -!- luke-jr [~luke-jr@user/luke-jr] has quit [Ping timeout: 256 seconds] 21:12 -!- lukedashjr [~luke-jr@user/luke-jr] has joined #secp256k1 21:13 -!- lukedashjr is now known as luke-jr 21:23 -!- ghost43_ [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 21:24 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 21:46 -!- lukedashjr [~luke-jr@user/luke-jr] has joined #secp256k1 21:46 -!- luke-jr [~luke-jr@user/luke-jr] has quit [Ping timeout: 250 seconds] 21:47 -!- lukedashjr is now known as luke-jr 22:00 -!- luke-jr [~luke-jr@user/luke-jr] has quit [Read error: Connection reset by peer] 22:03 -!- luke-jr [~luke-jr@user/luke-jr] has joined #secp256k1 22:06 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 22:07 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 22:24 -!- lukedashjr [~luke-jr@user/luke-jr] has joined #secp256k1 22:25 -!- luke-jr [~luke-jr@user/luke-jr] has quit [Ping timeout: 252 seconds] 22:25 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 22:25 -!- lukedashjr is now known as luke-jr 22:26 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 22:41 -!- luke-jr [~luke-jr@user/luke-jr] has quit [Read error: Connection reset by peer] 22:43 -!- luke-jr [~luke-jr@user/luke-jr] has joined #secp256k1 23:09 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 23:10 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 23:10 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 23:10 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 23:47 -!- lukedashjr [~luke-jr@user/luke-jr] has joined #secp256k1 23:49 -!- luke-jr [~luke-jr@user/luke-jr] has quit [Ping timeout: 256 seconds] 23:49 -!- lukedashjr is now known as luke-jr --- Log closed Wed Mar 23 00:00:34 2022