--- Log opened Tue Mar 08 00:00:19 2022 00:03 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Ping timeout: 240 seconds] 00:09 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #bitcoin-wizards 00:15 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 00:16 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #bitcoin-wizards 00:24 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 00:25 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #bitcoin-wizards 00:34 -!- michagogo [uid14316@user/michagogo] has joined #bitcoin-wizards 00:48 -!- michagogo is now known as micha_ 00:50 -!- Guyver2_ [Guyver@guyver2.xs4all.nl] has joined #bitcoin-wizards 00:53 -!- Guyver2 [~Guyver@guyver2.xs4all.nl] has quit [Ping timeout: 272 seconds] 00:53 -!- Guyver2_ is now known as Guyver2 00:59 -!- solocshaw [~Thunderbi@gateway/vpn/pia/solocshaw] has quit [Ping timeout: 256 seconds] 01:18 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 01:21 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #bitcoin-wizards 01:22 -!- da39a3ee5e6b4b0d [~textual@2403:6200:8876:d2a9:6da2:b132:dfcb:fb0e] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…] 01:23 -!- Guyver2 [Guyver@guyver2.xs4all.nl] has quit [Quit: Going offline, see ya! (www.adiirc.com)] 01:24 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 01:25 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #bitcoin-wizards 01:26 -!- da39a3ee5e6b4b0d [~textual@2403:6200:8876:d2a9:6da2:b132:dfcb:fb0e] has joined #bitcoin-wizards 02:03 -!- kexkey [~kexkey@static-198-54-132-88.cust.tzulo.com] has quit [Ping timeout: 256 seconds] 02:05 -!- kexkey [~kexkey@static-198-54-132-152.cust.tzulo.com] has joined #bitcoin-wizards 02:06 -!- AaronvanW [~AaronvanW@user/AaronvanW] has joined #bitcoin-wizards 02:13 -!- da39a3ee5e6b4b0d [~textual@2403:6200:8876:d2a9:6da2:b132:dfcb:fb0e] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…] 02:14 -!- da39a3ee5e6b4b0d [~textual@2403:6200:8876:d2a9:6da2:b132:dfcb:fb0e] has joined #bitcoin-wizards 02:16 -!- da39a3ee5e6b4b0d [~textual@2403:6200:8876:d2a9:6da2:b132:dfcb:fb0e] has quit [Client Quit] 02:16 -!- da39a3ee5e6b4b0d [~textual@2403:6200:8876:d2a9:6da2:b132:dfcb:fb0e] has joined #bitcoin-wizards 02:24 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 02:25 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #bitcoin-wizards 02:26 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 02:27 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #bitcoin-wizards 02:44 -!- da39a3ee5e6b4b0d [~textual@2403:6200:8876:d2a9:6da2:b132:dfcb:fb0e] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…] 03:00 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Remote host closed the connection] 03:49 < jeremyrubin> sipa: how would one satisfy the script "(0x50) equal if pk checksig else pk2 checksig endif" 03:50 < jeremyrubin> Err prefix that with DEPTH ROLL 03:52 < jeremyrubin> Basically seems like if your script requires 0x50 you would need to pass some annex in in addition to 0x50, but because annex is non standard... 03:52 < jeremyrubin> This script is unspendable by standard rules 03:52 -!- Saloframes [~Saloframe@user/Saloframes] has joined #bitcoin-wizards 03:53 -!- Saloframes [~Saloframe@user/Saloframes] has quit [Remote host closed the connection] 03:54 -!- Saloframes [~Saloframe@user/Saloframes] has joined #bitcoin-wizards 03:57 -!- Guyver2 [~Guyver@guyver2.xs4all.nl] has joined #bitcoin-wizards 04:00 -!- boxframes_ [~Saloframe@user/Saloframes] has joined #bitcoin-wizards 04:01 -!- boxframes_ [~Saloframe@user/Saloframes] has quit [Remote host closed the connection] 04:01 -!- Saloframes [~Saloframe@user/Saloframes] has quit [Read error: Connection reset by peer] 04:08 -!- Saloframes [~Saloframe@user/Saloframes] has joined #bitcoin-wizards 04:21 -!- Saloframes [~Saloframe@user/Saloframes] has quit [Quit: Leaving] 04:23 -!- Saloframes [~Saloframe@user/Saloframes] has joined #bitcoin-wizards 05:24 -!- da39a3ee5e6b4b0d [~textual@2403:6200:8876:d2a9:6da2:b132:dfcb:fb0e] has joined #bitcoin-wizards 05:30 -!- dodo [~dodo@user/dodo] has quit [Remote host closed the connection] 05:31 -!- dodo [~dodo@user/dodo] has joined #bitcoin-wizards 05:37 -!- da39a3ee5e6b4b0d [~textual@2403:6200:8876:d2a9:6da2:b132:dfcb:fb0e] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…] 07:23 -!- micha_ [uid14316@user/michagogo] has quit [Quit: Connection closed for inactivity] 07:28 < roconnor_> I'm not following. The annex appears before the redeem script in the witness stack. 07:28 < roconnor_> it is popped off if it exists. 07:28 < roconnor_> The thing that you cannot do is begin a redeem script with 0x50. 07:29 < roconnor_> which is OP_RESERVED. 07:45 < roconnor_> Er correction 07:45 < roconnor_> What isn't allowed is a tapleaf version of 0x50 07:47 < jeremyrubin> ah 07:47 < jeremyrubin> the spec in the BIP is not clear 07:47 < jeremyrubin> it should be revised :) 07:47 < jeremyrubin> "If there are at least two witness elements, and the first byte of the last element is 0x50[4], this last element is called annex a[5]" 07:47 < roconnor_> Seems to use "last" to mean "top". 07:47 < jeremyrubin> should read: "If there are at least two witness elements, and the first byte of the element on top of the stack is 0x50[4], this last element is called annex a[5" 07:50 < roconnor_> still, I'm left curious about the key spend path... 07:52 < roconnor_> oh it is the back of the stack where the annex is 07:52 < roconnor_> ugh. 07:52 < roconnor_> I see now. 07:53 < roconnor_> For tapscript spending the stack looks like, starting from the bottom [optional annex][control block][redeemscript][[witness stack items]](top of the witness stack here) 07:54 < roconnor_> and for keyspend the stack looks like [optional annex][signature]. 07:55 < roconnor_> so 1 item is a keyspend signature. 07:56 < roconnor_> 2 items is keyspend with annex if the bottom of the stack starts with 0x50, and is a tapscript spend otherwise (where the redeem script is run on an empty witness stack). 08:00 < jeremyrubin> wait i thought it's vice versa? 08:00 < jeremyrubin> Annex is top of stack alwasy? 08:00 < roconnor_> const valtype& annex = SpanPopBack(stack); 08:01 < jeremyrubin> yes PopBack pops the top 08:01 < jeremyrubin> https://github.com/bitcoin/bitcoin/blob/b07fdd7f9eef5f1498af056f3ef11e44795578c0/src/script/interpreter.cpp#L1923 08:01 < jeremyrubin> back of a span is the top of a stack 08:02 < jeremyrubin> and the back of a stack is the front of a span, but sometimes we call it the back of the stack for "reasons" unknown. 08:02 < roconnor_> is it? 08:02 < jeremyrubin> This is all confusing so we should make terminology more clear lest we make bugs haha 08:04 < jeremyrubin> if you asked me yesterday where the annex is i would have said "the element that requires the most pops to get it off the stack" 08:04 < jeremyrubin> (not exactly, but that's unambiguous) 08:04 < jeremyrubin> i'm sure i must have known it was actually the top at some point... 08:05 < roconnor_> idk. Stacks clearly have a top and bottom. 08:05 < jeremyrubin> and the top is the back / last clearly? 08:05 < roconnor_> that is less clear. :) 08:06 < roconnor_> I agree the current wording using "last" is unclear, and should stick to using "top". 08:06 < roconnor_> assuming it is the top of the stack like you say. 08:06 < jeremyrubin> are we still not in agreement with where the annex lives? 08:07 < roconnor_> no I think you are probably right. 08:07 < roconnor_> I just haven't verified it myself. 08:10 -!- vysn [~vysn@user/vysn] has quit [Ping timeout: 240 seconds] 08:49 < roconnor_> okay popstack is implement via pop_back, so yes the back of a vector/span is the top. 08:50 < roconnor_> so the annex is on top, followed by either the control block then redeem script, or a keyspend signature. 08:55 < sanket1729> Yep, I always thought it was for script spend 10:42 -!- sdaftuar1 is now known as sdaftuar 10:47 -!- shesek [~shesek@user/shesek] has quit [Remote host closed the connection] 10:57 -!- yanmaani [~yanmaani@gateway/tor-sasl/yanmaani] has quit [Remote host closed the connection] 10:57 -!- yanmaani [~yanmaani@gateway/tor-sasl/yanmaani] has joined #bitcoin-wizards 11:53 -!- luke-jr [~luke-jr@user/luke-jr] has quit [Ping timeout: 256 seconds] 11:54 -!- luke-jr [~luke-jr@user/luke-jr] has joined #bitcoin-wizards 11:55 < jeremyrubin> ctv meeting in 5 minutes, ##ctv-bip-review 13:14 -!- deusexbeer [~hedeo@37-146-227-150.broadband.corbina.ru] has joined #bitcoin-wizards 14:07 -!- instantp10neer [~instantp1@user/instantp10neer] has joined #bitcoin-wizards 14:21 -!- Guyver2 [~Guyver@guyver2.xs4all.nl] has quit [Quit: Going offline, see ya! (www.adiirc.com)] 14:47 -!- da39a3ee5e6b4b0d [~textual@2403:6200:8876:d2a9:6da2:b132:dfcb:fb0e] has joined #bitcoin-wizards 14:52 -!- da39a3ee5e6b4b0d [~textual@2403:6200:8876:d2a9:6da2:b132:dfcb:fb0e] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…] 14:53 -!- da39a3ee5e6b4b0d [~textual@mx-ll-171.5.29-46.dynamic.3bb.co.th] has joined #bitcoin-wizards 14:56 -!- shesek [~shesek@user/shesek] has joined #bitcoin-wizards 15:21 -!- AaronvanW [~AaronvanW@user/AaronvanW] has quit [Remote host closed the connection] 15:24 -!- da39a3ee5e6b4b0d [~textual@mx-ll-171.5.29-46.dynamic.3bb.co.th] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…] 15:35 -!- bitdex [~bitdex@gateway/tor-sasl/bitdex] has joined #bitcoin-wizards 15:41 -!- Liliaceae [sid282374@id-282374.lymington.irccloud.com] has quit [Read error: Connection reset by peer] 15:41 -!- Liliaceae [sid282374@id-282374.lymington.irccloud.com] has joined #bitcoin-wizards 15:41 -!- RubenSomsen [sid301948@user/rubensomsen] has quit [Read error: Connection reset by peer] 15:41 -!- fjahr [sid374480@id-374480.uxbridge.irccloud.com] has quit [Read error: Connection reset by peer] 15:41 -!- blkncd [sid505676@id-505676.helmsley.irccloud.com] has quit [Read error: Connection reset by peer] 15:41 -!- fjahr [sid374480@id-374480.uxbridge.irccloud.com] has joined #bitcoin-wizards 15:41 -!- RubenSomsen [sid301948@user/rubensomsen] has joined #bitcoin-wizards 15:41 -!- bw [sid2730@user/betawaffle] has quit [Read error: Connection reset by peer] 15:42 -!- blkncd [sid505676@id-505676.helmsley.irccloud.com] has joined #bitcoin-wizards 15:42 -!- bw [sid2730@user/betawaffle] has joined #bitcoin-wizards 15:51 -!- AaronvanW [~AaronvanW@user/AaronvanW] has joined #bitcoin-wizards 16:02 -!- Saloframes [~Saloframe@user/Saloframes] has quit [Quit: Leaving] 16:09 -!- Saloframes [~Saloframe@user/Saloframes] has joined #bitcoin-wizards 16:22 -!- Saloframes [~Saloframe@user/Saloframes] has quit [Quit: Leaving] 16:22 -!- yanmaani [~yanmaani@gateway/tor-sasl/yanmaani] has quit [Ping timeout: 240 seconds] 16:25 -!- AaronvanW [~AaronvanW@user/AaronvanW] has quit [Ping timeout: 272 seconds] 16:46 -!- shesek [~shesek@user/shesek] has quit [Remote host closed the connection] 16:47 -!- shesek [~shesek@user/shesek] has joined #bitcoin-wizards 17:04 -!- shesek [~shesek@user/shesek] has quit [Remote host closed the connection] 17:05 -!- shesek [~shesek@user/shesek] has joined #bitcoin-wizards 17:31 -!- zoiahorn [~zoiahorn@173.205.92.152] has quit [Quit: zoiahorn] 17:31 -!- zoiahorn [~zoiahorn@173.205.92.152] has joined #bitcoin-wizards 17:42 < jamesob> when doing bitcoin crypto stuff, should I basically always default to big endian unless it's a known special case (e.g. txids)? 17:43 < roconnor_> nearly everything in Bitcoin's serialization structures is little endian. 17:44 < roconnor_> The few exceptions are when things are taken from other standards like ECDSA signatures and, arguably, sha-256. 17:45 < jamesob> e.g. when going bytes -> int to generate privkey secrets from entropy... does endianness even matter there? 17:47 -!- davterra [~davterra@143.198.56.186] has joined #bitcoin-wizards 17:47 < roconnor_> Apparently I'm supposed to tell people not to roll their own crypto. 17:48 < jamesob> some people have to learn the hard way 17:50 < roconnor_> The conversion of random bytes to a scalar value, which are the type of values used for private keys, technically has no endianess concern because the byte reversal of a suitably long random string is equally as random. 17:50 < jamesob> right, that's what I figured 18:02 < jamesob> thanks roconnor_, I won't blame you when I shoot myself in the foot 18:18 -!- rocket_fuel__ [sid2662@id-2662.ilkley.irccloud.com] has joined #bitcoin-wizards 18:22 -!- Saloframes [~Saloframe@user/Saloframes] has joined #bitcoin-wizards 18:22 -!- AaronvanW [~AaronvanW@user/AaronvanW] has joined #bitcoin-wizards 18:22 -!- vysn [~vysn@user/vysn] has joined #bitcoin-wizards 18:36 -!- shesek [~shesek@user/shesek] has quit [Remote host closed the connection] 18:36 -!- shesek [~shesek@user/shesek] has joined #bitcoin-wizards 18:39 -!- da39a3ee5e6b4b0d [~textual@2403:6200:8876:d2a9:6da2:b132:dfcb:fb0e] has joined #bitcoin-wizards 18:39 -!- da39a3ee5e6b4b0d [~textual@2403:6200:8876:d2a9:6da2:b132:dfcb:fb0e] has quit [Client Quit] 18:42 -!- da39a3ee5e6b4b0d [~textual@2403:6200:8876:d2a9:20af:a1b:4b5f:e73] has joined #bitcoin-wizards 18:51 -!- da39a3ee5e6b4b0_ [~textual@2403:6200:8876:d2a9:ecfc:ebe1:b77a:f914] has joined #bitcoin-wizards 18:53 -!- rocket_fuel__ is now known as rocket_fuel 18:54 -!- da39a3ee5e6b4b0d [~textual@2403:6200:8876:d2a9:20af:a1b:4b5f:e73] has quit [Ping timeout: 240 seconds] 18:56 -!- AaronvanW [~AaronvanW@user/AaronvanW] has quit [Ping timeout: 256 seconds] 18:56 -!- rocket_fuel [sid2662@id-2662.ilkley.irccloud.com] has quit [Changing host] 18:56 -!- rocket_fuel [sid2662@user/rocket-fuel/x-5142944] has joined #bitcoin-wizards 18:58 -!- shesek [~shesek@user/shesek] has quit [Remote host closed the connection] 18:59 -!- shesek [~shesek@user/shesek] has joined #bitcoin-wizards 19:10 -!- shesek_ [~shesek@user/shesek] has joined #bitcoin-wizards 19:13 -!- shesek [~shesek@user/shesek] has quit [Ping timeout: 256 seconds] 19:16 -!- da39a3ee5e6b4b0_ [~textual@2403:6200:8876:d2a9:ecfc:ebe1:b77a:f914] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…] 19:40 -!- luke-jr [~luke-jr@user/luke-jr] has quit [Quit: ZNC - http://znc.sourceforge.net] 19:40 -!- szarka [~szarka@24-124-20-18-static.midco.net] has joined #bitcoin-wizards 19:46 -!- da39a3ee5e6b4b0d [~textual@2403:6200:8876:d2a9:ecfc:ebe1:b77a:f914] has joined #bitcoin-wizards 19:50 -!- luke-jr [~luke-jr@user/luke-jr] has joined #bitcoin-wizards 19:52 -!- solocshaw [~Thunderbi@gateway/vpn/pia/solocshaw] has joined #bitcoin-wizards 20:03 -!- shesek_ [~shesek@user/shesek] has quit [Remote host closed the connection] 20:03 -!- shesek_ [~shesek@user/shesek] has joined #bitcoin-wizards 20:53 -!- AaronvanW [~AaronvanW@user/AaronvanW] has joined #bitcoin-wizards 20:59 -!- da39a3ee5e6b4b0d [~textual@2403:6200:8876:d2a9:ecfc:ebe1:b77a:f914] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…] 21:25 -!- geyaeb [~geyaeb@gateway/tor-sasl/geyaeb] has quit [Ping timeout: 240 seconds] 21:25 -!- AaronvanW [~AaronvanW@user/AaronvanW] has quit [Ping timeout: 240 seconds] 21:25 -!- da39a3ee5e6b4b0d [~textual@2403:6200:8876:d2a9:ecfc:ebe1:b77a:f914] has joined #bitcoin-wizards 21:29 -!- geyaeb [~geyaeb@gateway/tor-sasl/geyaeb] has joined #bitcoin-wizards 21:47 -!- shesek_ [~shesek@user/shesek] has quit [Remote host closed the connection] 21:48 -!- shesek_ [~shesek@user/shesek] has joined #bitcoin-wizards 22:12 -!- shesek_ [~shesek@user/shesek] has quit [Remote host closed the connection] 22:13 -!- shesek_ [~shesek@user/shesek] has joined #bitcoin-wizards 22:29 -!- da39a3ee5e6b4b0d [~textual@2403:6200:8876:d2a9:ecfc:ebe1:b77a:f914] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…] 22:39 -!- da39a3ee5e6b4b0d [~textual@2403:6200:8876:d2a9:ecfc:ebe1:b77a:f914] has joined #bitcoin-wizards 22:58 -!- yanmaani [~yanmaani@gateway/tor-sasl/yanmaani] has joined #bitcoin-wizards 23:23 -!- AaronvanW [~AaronvanW@user/AaronvanW] has joined #bitcoin-wizards 23:28 -!- shesek__ [~shesek@user/shesek] has joined #bitcoin-wizards 23:31 -!- shesek_ [~shesek@user/shesek] has quit [Ping timeout: 240 seconds] 23:42 -!- da39a3ee5e6b4b0_ [~textual@171.5.29.46] has joined #bitcoin-wizards 23:42 -!- da39a3ee5e6b4b0d [~textual@2403:6200:8876:d2a9:ecfc:ebe1:b77a:f914] has quit [Ping timeout: 240 seconds] 23:43 -!- gribble [~gribble@bitcoin/bot/gribble] has quit [Remote host closed the connection] 23:47 -!- gribble [~gribble@bitcoin/bot/gribble] has joined #bitcoin-wizards 23:55 -!- AaronvanW [~AaronvanW@user/AaronvanW] has quit [Ping timeout: 240 seconds] 23:55 -!- jonatack [~jonatack@user/jonatack] has joined #bitcoin-wizards --- Log closed Wed Mar 09 00:00:20 2022