sipa changed the topic of #bitcoin-wizards to: This channel is for discussing theoretical ideas with regard to cryptocurrencies, not about short-term Bitcoin development | http://bitcoin.ninja/ | This channel is logged. | For logs and more information, visit http://bitcoin.ninja
phoenixlzx1 has quit []
ghost43 has quit [Remote host closed the connection]
ghost43 has joined #bitcoin-wizards
feth1 has joined #bitcoin-wizards
justanotheruser has joined #bitcoin-wizards
Chris_Stewart_5 has quit [Ping timeout: 258 seconds]
ddustin has quit [Remote host closed the connection]
ddustin has joined #bitcoin-wizards
ddustin has quit [Ping timeout: 258 seconds]
TheoStorm has joined #bitcoin-wizards
TheoStorm has quit [Client Quit]
thomasan_ has joined #bitcoin-wizards
thomasan_ has quit [Ping timeout: 248 seconds]
rusty has joined #bitcoin-wizards
justanotheruser has quit [Quit: WeeChat 2.4]
justanotheruser has joined #bitcoin-wizards
belcher has quit [Ping timeout: 272 seconds]
AaronvanW has quit [Remote host closed the connection]
justanotheruser has quit [Quit: WeeChat 2.4]
belcher has joined #bitcoin-wizards
vtnerd has quit [Quit: ZNC 1.7.3 - https://znc.in]
justanotheruser has joined #bitcoin-wizards
vtnerd has joined #bitcoin-wizards
rusty has quit [Quit: Leaving.]
jtimon has quit [Ping timeout: 248 seconds]
surja795 has joined #bitcoin-wizards
elichai2 has joined #bitcoin-wizards
AaronvanW has joined #bitcoin-wizards
surja795 has quit [Ping timeout: 244 seconds]
Belkaar_ has quit [Ping timeout: 248 seconds]
Belkaar has joined #bitcoin-wizards
Belkaar has quit [Changing host]
Belkaar has joined #bitcoin-wizards
justanotheruser has quit [Ping timeout: 272 seconds]
feth1 has quit []
epicfail^ has joined #bitcoin-wizards
AaronvanW has quit [Ping timeout: 268 seconds]
thomasan_ has joined #bitcoin-wizards
surja795 has joined #bitcoin-wizards
thomasan_ has quit [Ping timeout: 246 seconds]
surja795 has quit [Ping timeout: 245 seconds]
_whitelogger has joined #bitcoin-wizards
justanotheruser has joined #bitcoin-wizards
rusty has joined #bitcoin-wizards
rusty has quit [Quit: Leaving.]
<elichai2> Couple of thoughts about taproot.
<elichai2> 4. Do we really need so many different ways to have future upgrades? (tx version, segwit version, annex, first byte of control block, epoch, hash_type(?) )
<elichai2> 1. We can optimize the keys length to 32 by using the same restriction we use for the nonce.
<elichai2> 3. Why reject unknown hash_type instead of just not caching and hashing it on demand if needed?
<elichai2> 2. There wasn't any formal definition for `compact_size` but I think the size should be a constant size. Otherwise you maybe(?) could make a collision by moving the last bit of the size to the script if you could somehow make it valid (I need to think about it more tomorrow)
spinza has joined #bitcoin-wizards
AaronvanW has joined #bitcoin-wizards
surja795 has joined #bitcoin-wizards
vtnerd has quit [Quit: ZNC 1.7.3 - https://znc.in]
vtnerd has joined #bitcoin-wizards
surja795 has quit [Ping timeout: 245 seconds]
rusty has joined #bitcoin-wizards
AaronvanW has quit [Ping timeout: 245 seconds]
<sipa> 1. yes, there is a discussion on the ml about that
<sipa> 2. compact_size is defined by the existing bitcoin protocol; it's variable length, but that is ok; a good rule of thumb is that if you'd be able to deserialize the data being written into the hasher, it's collision free
surja795 has joined #bitcoin-wizards
<sipa> 3. that's a mild DOS attack, allowing an attacker to make the verifier perform a lot more uncachable hashes (one per hash_type, so reducing the number of valid options helps)
<sipa> 4. probably not, but almost all of them are very cheap in terms of additional complexity in consensus rules
<sipa> they also all have different scope (except the leaf version and op_success, which accomplish kind of the same thing; but the bits were available, so it'd be silly for force them to a certain value instead of permitting them as an uograde mechanism)
surja795 has quit [Ping timeout: 245 seconds]
epicfail^ has quit []
luke-jr has quit [Remote host closed the connection]
mrdocs has joined #bitcoin-wizards
luke-jr has joined #bitcoin-wizards
rusty has quit [Quit: Leaving.]
rusty has joined #bitcoin-wizards
rusty has quit [Client Quit]
<elichai2> I'll look at the existing compact_size, curious how it's deserializable (although I might be missing something obvious right now, it is 2am lol)
<elichai2> It's just weird that i.e sometimes we use a whole byte to check for point parity and sometimes just one bit
rusty has joined #bitcoin-wizards
<sipa> elichai2: learn how variable length integers work
<sipa> they're already used everyone in the protocol
<sipa> (number of tx in a block, number of inputs/outputs, ...)
<sipa> a different type of variable length integers are used inside script
<elichai2> It's just that sha3 tuplehash RFC talks about appending variable length and then constant length of the length so I wondered but I'll look into it more
<sipa> bitcoin core uses yet another type of variable length integers inside the utxo set storage
<sipa> the best known variable length integer encoding is probably utf-i, which uses yet another type
<sipa> protobuf uses one as well for pretty much everything
<elichai2> Ha that's actually a pretty cool thing. So this can take at the very least one byte, right?
<sipa> yes
<elichai2> Interesting why tuplehash didn't use that
<elichai2> sipa: cool
<sipa> the bitcoin variable length integer is pretty stupid
<sipa> there are nicer constructions
<elichai2> Thanks for the answers, I hope I'm not bothering you too much :)
<elichai2> Is there any one in specific you are thinking of?
<sipa> the bitcoin one is just encoding 0-252 as that byte itself, 253 indicates a 16-bit number follows, 254 means a 32-bit number follows, 255 means a 64-bit one follows
<sipa> it's good when almost all values are in range 0-252
<elichai2> Yeah, otherwise you could just use the last bit to signal if you should interpret the next bit too
<elichai2> Without saying how many more
<sipa> i think the most common construction is thr BER one
<sipa> it stores 7 bits per byte, plus one bit that says whether another byte follows
<sipa> that's also used in protobuf
<elichai2> Exactly. Idk why I've never heard/thought of that. I always tried to use constant size sizes when hashing (mostly just 64bit because it isn't feasible to have a byte array that it's length is 2^64)
<sipa> what encoding is best depends on the cirfumstances
<sipa> the utf8 one is pretty clever
rusty has quit [Quit: Leaving.]
rusty has joined #bitcoin-wizards
surja795 has joined #bitcoin-wizards
surja795 has quit [Ping timeout: 246 seconds]
AaronvanW has joined #bitcoin-wizards
tombusby has quit [Remote host closed the connection]
tombusby has joined #bitcoin-wizards
rafalcpp_ has joined #bitcoin-wizards
rafalcpp has quit [Ping timeout: 272 seconds]
justanotheruser has quit [Quit: WeeChat 2.4]
AaronvanW has quit [Ping timeout: 272 seconds]
tromp has quit [Remote host closed the connection]
tromp has joined #bitcoin-wizards
queip has quit [Ping timeout: 245 seconds]
rafalcpp has joined #bitcoin-wizards
rafalcpp_ has quit [Ping timeout: 272 seconds]
AaronvanW has joined #bitcoin-wizards
queip has joined #bitcoin-wizards
<sipa>
queip has quit [Ping timeout: 245 seconds]
rafalcpp_ has joined #bitcoin-wizards
rafalcpp has quit [Ping timeout: 245 seconds]
mrdocs has quit []
jes1 has joined #bitcoin-wizards
queip has joined #bitcoin-wizards
Emcy has quit [Ping timeout: 245 seconds]
TheoStorm has joined #bitcoin-wizards
AaronvanW has quit [Ping timeout: 272 seconds]
AaronvanW has joined #bitcoin-wizards
tombusby has quit [Remote host closed the connection]
tombusby has joined #bitcoin-wizards
Emcy has joined #bitcoin-wizards
booyah has quit [Ping timeout: 258 seconds]
TheoStorm has quit [Quit: Leaving]
jtimon has joined #bitcoin-wizards
TheoStorm has joined #bitcoin-wizards
spinza has quit [Quit: Coyote finally caught up with me...]
surja795 has joined #bitcoin-wizards
emilengler has joined #bitcoin-wizards
spinza has joined #bitcoin-wizards
emilengler has quit [Ping timeout: 246 seconds]
emilengler has joined #bitcoin-wizards
surja795 has quit [Ping timeout: 245 seconds]
rafalcpp has joined #bitcoin-wizards
rafalcpp_ has quit [Ping timeout: 245 seconds]
queip has quit [Ping timeout: 272 seconds]
rafalcpp_ has joined #bitcoin-wizards
rafalcpp has quit [Ping timeout: 248 seconds]
tromp has quit [Remote host closed the connection]
queip has joined #bitcoin-wizards
7GHAA11HB has joined #bitcoin-wizards
emilengler has quit [Remote host closed the connection]
jes1 has quit []
surja795 has joined #bitcoin-wizards
7GHAA11HB has quit [Remote host closed the connection]
ds has joined #bitcoin-wizards
epscy has quit [Ping timeout: 268 seconds]
epscy has joined #bitcoin-wizards
michaelfolkson has joined #bitcoin-wizards
michaelfolkson has quit [Ping timeout: 244 seconds]
rafalcpp has joined #bitcoin-wizards
rafalcpp_ has quit [Ping timeout: 245 seconds]
queip has quit [Ping timeout: 268 seconds]
queip has joined #bitcoin-wizards
DougieBot5000 has quit [Read error: Connection reset by peer]
DougieBot5000 has joined #bitcoin-wizards
Chris_Stewart_5 has joined #bitcoin-wizards
surja795 has quit [Ping timeout: 268 seconds]
AaronvanW has quit []
rafalcpp_ has joined #bitcoin-wizards
queip has quit [Ping timeout: 245 seconds]
rafalcpp has quit [Ping timeout: 245 seconds]
thomasan_ has joined #bitcoin-wizards
queip has joined #bitcoin-wizards
AaronvanW has joined #bitcoin-wizards
emilengler has joined #bitcoin-wizards
thomasan_ has quit [Remote host closed the connection]
thomasan_ has joined #bitcoin-wizards
queip has quit [Ping timeout: 246 seconds]
rafalcpp has joined #bitcoin-wizards
rafalcpp_ has quit [Ping timeout: 244 seconds]
queip has joined #bitcoin-wizards
Logicwax has quit [Ping timeout: 248 seconds]
Logicwax has joined #bitcoin-wizards
Chris_Stewart_5 has quit [Ping timeout: 258 seconds]
Guyver2 has joined #bitcoin-wizards
emilengler has quit [Ping timeout: 248 seconds]
AaronvanW has quit []
ds has quit []
Chris_Stewart_5 has joined #bitcoin-wizards
Chris_Stewart_5 has quit [Ping timeout: 245 seconds]
justanotheruser has joined #bitcoin-wizards
thomasan_ has quit [Remote host closed the connection]
queip has quit [Ping timeout: 258 seconds]
rafalcpp has quit [Ping timeout: 258 seconds]
rafalcpp has joined #bitcoin-wizards
queip has joined #bitcoin-wizards
MarkusH1 has joined #bitcoin-wizards
emilengler has joined #bitcoin-wizards
thomasan_ has joined #bitcoin-wizards
thomasan_ has quit [Ping timeout: 272 seconds]
Belkaar has quit [Read error: Connection reset by peer]
Belkaar has joined #bitcoin-wizards
Belkaar has joined #bitcoin-wizards
Belkaar has quit [Changing host]
booyah has joined #bitcoin-wizards
surja795 has joined #bitcoin-wizards
emilengler has quit [Ping timeout: 245 seconds]
emilengler has joined #bitcoin-wizards
AaronvanW has joined #bitcoin-wizards
emilengler has quit [Client Quit]
emilengler has joined #bitcoin-wizards
Guest69653 is now known as real_or_random
MarkusH1 has quit []
spinza has quit [Quit: Coyote finally caught up with me...]
cvpcs|work has joined #bitcoin-wizards
surja795 has quit [Ping timeout: 258 seconds]
justanotheruser has quit [Quit: WeeChat 2.4]
spinza has joined #bitcoin-wizards
sakalli_ has joined #bitcoin-wizards
sakalli_ has quit [Client Quit]
ppisati has quit [Ping timeout: 272 seconds]
pinheadmz has quit [Quit: pinheadmz]
pinheadmz has joined #bitcoin-wizards
Aaronvan_ has joined #bitcoin-wizards
justanotheruser has joined #bitcoin-wizards
AaronvanW has quit [Ping timeout: 258 seconds]
tromp has joined #bitcoin-wizards
elichai2 has quit [Quit: Connection closed for inactivity]
starsoccer is now known as Guest79808
starsoccer has joined #bitcoin-wizards
pinheadmz has quit [Quit: pinheadmz]
vtnerd has quit [Ping timeout: 268 seconds]
Guest79808 has quit [Ping timeout: 272 seconds]
vtnerd has joined #bitcoin-wizards
AbuseOfNotation has joined #bitcoin-wizards
pinheadmz has joined #bitcoin-wizards
hrofu has quit [Ping timeout: 252 seconds]
hrofu has joined #bitcoin-wizards
IGHOR has quit [Ping timeout: 258 seconds]
emilengler has quit [Remote host closed the connection]
surja795 has joined #bitcoin-wizards
hrofu_ has joined #bitcoin-wizards
hrofu has quit [Ping timeout: 252 seconds]
surja795 has quit [Ping timeout: 272 seconds]
starsoccer9 has joined #bitcoin-wizards
starsoccer has quit [Killed (barjavel.freenode.net (Nickname regained by services))]
starsoccer9 is now known as starsoccer
cvpcs|work has quit []
[LE] has joined #bitcoin-wizards
tromp has quit [Remote host closed the connection]
jtimon has quit [Quit: gone]
tromp has joined #bitcoin-wizards
Guyver2 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
ppisati has joined #bitcoin-wizards
itsiku has joined #bitcoin-wizards
justanotheruser has quit [Ping timeout: 246 seconds]
justanotheruser has joined #bitcoin-wizards
rusty has quit [Quit: Leaving.]
rusty has joined #bitcoin-wizards
rusty has quit [Client Quit]
rusty has joined #bitcoin-wizards
rusty has quit [Client Quit]
rusty has joined #bitcoin-wizards
rusty has quit [Client Quit]
rusty has joined #bitcoin-wizards
rusty has quit [Client Quit]
rusty has joined #bitcoin-wizards
rusty has quit [Client Quit]
rusty has joined #bitcoin-wizards
rusty has quit [Client Quit]
tromp has quit [Remote host closed the connection]
rusty has joined #bitcoin-wizards
rusty has quit [Client Quit]
rusty has joined #bitcoin-wizards
rusty has quit [Client Quit]
rusty has joined #bitcoin-wizards
rusty has quit [Client Quit]
rusty has joined #bitcoin-wizards
rusty has quit [Client Quit]
rusty has joined #bitcoin-wizards
rusty has quit [Client Quit]
rusty has joined #bitcoin-wizards
rusty has quit [Client Quit]
rusty has joined #bitcoin-wizards
rusty has quit [Client Quit]
rusty has joined #bitcoin-wizards
tromp has joined #bitcoin-wizards
rusty has quit [Ping timeout: 248 seconds]
Zenton has quit [Ping timeout: 268 seconds]
tromp has quit [Ping timeout: 272 seconds]
Aaronvan_ has quit []
spinza has quit [Quit: Coyote finally caught up with me...]
CryptoDavid has joined #bitcoin-wizards
tromp has joined #bitcoin-wizards
tromp has quit [Ping timeout: 246 seconds]
spinza has joined #bitcoin-wizards
surja795 has joined #bitcoin-wizards
surja795 has quit [Ping timeout: 272 seconds]
rusty has joined #bitcoin-wizards
rusty has quit [Client Quit]
rusty has joined #bitcoin-wizards
rusty has quit [Client Quit]
rusty has joined #bitcoin-wizards
rusty has quit [Client Quit]
rusty has joined #bitcoin-wizards
rusty has quit [Ping timeout: 245 seconds]