--- Log opened Thu Apr 29 00:00:40 2021 05:32 -!- sipa [~pw@gateway/tor-sasl/sipa1024] has quit [Remote host closed the connection] 05:37 -!- sipa [~pw@gateway/tor-sasl/sipa1024] has joined #secp256k1 06:15 < elichai2> How does `typedef struct secp256k1_context_struct secp256k1_context;` works? it typedefs something that doesn't exists in this header 06:15 < elichai2> https://github.com/bitcoin-core/secp256k1/blob/master/include/secp256k1.h#L44 07:32 < sipa> after that statement, it does exist 07:33 < sipa> it's the equivalent of "struct secp256k1_context_struct;" 07:33 < sipa> followed by that typedef 07:56 < elichai2> hmm right, so it's declaring an incomplete struct and typedefs it, is there an upside to using the "real" secp256k1_context_struct name and not `typedef struct secp256k1_context secp256k1_context`? 07:56 < elichai2> *hmmm ok 😅 08:02 < sipa> i think that would also work 08:02 < elichai2> so there's no upside to the fact that it's typedefing the name of the actual full struct? 08:03 < sipa> oh, yes, it has to be 08:03 < sipa> because the .c code also uses that .h file 08:04 < elichai2> and the c code uses `secp256k1_context` and not `struct secp256k1_context_struct` 08:04 < sipa> its definition of the typedef has to match the one the API users use 08:06 < elichai2> I think I get it now, pretty confusing looking at that typedef from the header only perspective though 08:11 < sipa> it's a fairly typical approach 10:07 -!- jesseposner [~jesseposn@2601:645:200:162f:2183:5aca:4fde:dc3b] has quit [Quit: Textual IRC Client: www.textualapp.com] 10:58 -!- lukedashjr [~luke-jr@unaffiliated/luke-jr] has joined #secp256k1 10:59 -!- luke-jr [~luke-jr@unaffiliated/luke-jr] has quit [Ping timeout: 260 seconds] 11:03 -!- lukedashjr is now known as luke-jr 11:21 -!- jesseposner [~jesseposn@2601:645:200:162f:2462:5349:223b:247d] has joined #secp256k1 12:37 -!- jonatack [jon@gateway/vpn/airvpn/jonatack] has quit [Ping timeout: 252 seconds] 12:38 -!- jonatack [jon@gateway/vpn/airvpn/jonatack] has joined #secp256k1 15:42 -!- waitman [wago@monkeymeat.coolchatclub.com] has quit [Quit: So long, farewell, auf Wiedersehen, good night] 15:44 -!- deusexbeer [~deusexbee@095-129-169-139-dynamic-pool-adsl.wbt.ru] has joined #secp256k1 17:02 -!- belcher_ [~belcher@unaffiliated/belcher] has joined #secp256k1 17:05 -!- belcher [~belcher@unaffiliated/belcher] has quit [Ping timeout: 252 seconds] 17:07 -!- belcher_ is now known as belcher 17:21 -!- sipa [~pw@gateway/tor-sasl/sipa1024] has quit [Remote host closed the connection] 17:21 -!- sipa [~pw@gateway/tor-sasl/sipa1024] has joined #secp256k1 18:02 -!- waitman [wago@monkeymeat.coolchatclub.com] has joined #secp256k1 21:13 -!- snowflake [~snowflake@gateway/tor-sasl/snowflake] has quit [Ping timeout: 240 seconds] 21:13 -!- snowflake_ [~snowflake@gateway/tor-sasl/snowflake] has joined #secp256k1 --- Log closed Fri Apr 30 00:00:41 2021