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
nephyrin has joined #bitcoin-wizards
thomasanderson has joined #bitcoin-wizards
thomasanderson has quit [Ping timeout: 268 seconds]
tromp has quit [Remote host closed the connection]
tromp has joined #bitcoin-wizards
AaronvanW has quit [Remote host closed the connection]
thomasanderson has joined #bitcoin-wizards
thomasanderson has quit [Ping timeout: 264 seconds]
shesek has quit [Read error: No route to host]
shesek has joined #bitcoin-wizards
shesek has quit [Read error: Connection reset by peer]
shesek has joined #bitcoin-wizards
shesek has quit [Changing host]
shesek has joined #bitcoin-wizards
shesek has quit [Read error: Connection reset by peer]
shesek has joined #bitcoin-wizards
shesek has quit [Read error: Connection reset by peer]
shesek has joined #bitcoin-wizards
shesek has quit [Read error: Connection reset by peer]
shesek has joined #bitcoin-wizards
thomasanderson has joined #bitcoin-wizards
thomasanderson has quit [Ping timeout: 252 seconds]
shesek has quit [Read error: Connection reset by peer]
shesek has joined #bitcoin-wizards
shesek has quit [Changing host]
shesek has joined #bitcoin-wizards
shesek has quit [Read error: Connection reset by peer]
shesek has joined #bitcoin-wizards
phwalkr has joined #bitcoin-wizards
shesek has quit [Read error: Connection reset by peer]
shesek has joined #bitcoin-wizards
shesek has quit [Changing host]
shesek has joined #bitcoin-wizards
shesek has quit [Read error: Connection reset by peer]
shesek has joined #bitcoin-wizards
thomasanderson has joined #bitcoin-wizards
thomasanderson has quit [Ping timeout: 264 seconds]
shesek has quit [Read error: Connection reset by peer]
shesek has joined #bitcoin-wizards
<Jmabsd>
waxwing: gmaxwell responded at #bitcoin however it didn't clear anything up to me
phwalkr has quit [Ping timeout: 250 seconds]
<Jmabsd>
right, BIP143 does say that when you make an endorsement for a segwit input witness to spend a P2WPKH output, the signtext part for the pubkey script of the output to be consumed, is the P2*PKH* pubkeyscript template (DUP HASH160 hash EQUALVERIFY CHECKSIG).
shesek has quit [Ping timeout: 244 seconds]
<Jmabsd>
i don't see how this makes sense or makes anything more symmetrical, normally I'd have thought should be used here would be OP_0 OP_PUSHDATA 20byte-hash.
shesek has joined #bitcoin-wizards
shesek has quit [Read error: Connection reset by peer]
CheckDavid has quit [Quit: Connection closed for inactivity]
shesek has joined #bitcoin-wizards
shesek has quit [Changing host]
shesek has joined #bitcoin-wizards
<gmaxwell>
Jmabsd: I'm sorry, I tried explaining it to you: you sign the actual scriptpubkey that gets executed. that is not the "the P2*PKH* pubkeyscript" -- it's the script that is actually used with P2WPKH, it happens to be the same as the P2PKH code because it does the same thing. An analogy I attempted was pointing out that the "OP_0 PUSH[20bytes]" is functionally a compressed representation for DUP
<gmaxwell>
HASH160 bytes EQUALVERIFY CHECKSIG, and you just sign the actual script not the compressed representation.
<gmaxwell>
If thats not clear enough then I don't think I can help further.
<Jmabsd>
gmaxwell: ahaaaa
<Jmabsd>
gmaxwell: ahaa i see.
shesek has quit [Read error: Connection reset by peer]
<Jmabsd>
gmaxwell: okay, so, in non-witness scripting, the scope of an endorsement (signature) includes signing the *to-be-spent transaction output's pubkey*, which in the case of P2PKH would be DUP HASH160 hash EQUALVERIFY CHECKSIG.
<Jmabsd>
gmaxwell: in P2WPKH, the to-be-spent transaction output's pubkey is OP_0 PUSH 20bytes instead
<Jmabsd>
however your point is that
shesek has joined #bitcoin-wizards
shesek has quit [Read error: Connection reset by peer]
<Jmabsd>
gmaxwell: within a P2WPKH WITNESS, the scope of an endorsement (signature) is instead to sign the desire for the spend, which conceptually is a P2PKH pubkey script (DUP HASH160 ...),
<Jmabsd>
and that's why that's exactly what's used in the signature.
<Jmabsd>
gmaxwell: did I understand you right now?
<Jmabsd>
gmaxwell: can you clarify what you meant by "compressed representation" here? i don't understand what you mean
thomasanderson has joined #bitcoin-wizards
Belkaar has quit [Ping timeout: 240 seconds]
mn3monic has quit [Excess Flood]
mn3monic has joined #bitcoin-wizards
<gmaxwell>
"OP_0 PUSH[20bytes]" is 22 bytes. DUP HASH160 hash EQUALVERIFY CHECKSIG is 25.
Belkaar has joined #bitcoin-wizards
Belkaar has quit [Changing host]
Belkaar has joined #bitcoin-wizards
shesek has joined #bitcoin-wizards
shesek has quit [Read error: Connection reset by peer]
thomasanderson has quit [Ping timeout: 252 seconds]
shesek has joined #bitcoin-wizards
<Jmabsd>
gmaxwell: ah, right, P2WPKH's pubkey script is / can be seen as a compressed representation of the P2PKH pubkey script. sure.
<Jmabsd>
gmaxwell: ok i follow, thanks for clarifying!
<gmaxwell>
The connecion you draw to P2PKH is spurrious, like you could imagne that P2PKH was never actually used, then BIP143 would still behave the same.
<Jmabsd>
is there any particular document worth to read about the motivation and details of segwit, apart from the BIP:s and segwit diff?
<gmaxwell>
Jmabsd: stuff is all over the internets.
<Jmabsd>
ML posts.
<Jmabsd>
(y).
<gmaxwell>
yep.
shesek has quit [Read error: Connection reset by peer]
shesek has joined #bitcoin-wizards
shesek has quit [Read error: No route to host]
shesek has joined #bitcoin-wizards
shesek has quit [Changing host]
shesek has joined #bitcoin-wizards
shesek has quit [Read error: Connection reset by peer]
thomasanderson has joined #bitcoin-wizards
thomasanderson has quit [Ping timeout: 264 seconds]
shesek has joined #bitcoin-wizards
shesek has quit [Ping timeout: 268 seconds]
shesek has joined #bitcoin-wizards
shesek has quit [Read error: Connection reset by peer]
shesek has joined #bitcoin-wizards
Giszmo has quit [Ping timeout: 246 seconds]
shesek has quit [Read error: Connection reset by peer]
shesek has joined #bitcoin-wizards
thomasanderson has joined #bitcoin-wizards
thomasanderson has quit [Ping timeout: 260 seconds]
shesek has quit [Ping timeout: 250 seconds]
shesek has joined #bitcoin-wizards
shesek has quit [Changing host]
shesek has joined #bitcoin-wizards
shesek has quit [Read error: No route to host]
Giszmo has joined #bitcoin-wizards
spinza has quit [Quit: Coyote finally caught up with me...]
spinza has joined #bitcoin-wizards
Jmabsd has quit [Ping timeout: 240 seconds]
thomasanderson has joined #bitcoin-wizards
thomasanderson has quit [Ping timeout: 252 seconds]
rh0nj has quit [Remote host closed the connection]
rh0nj has joined #bitcoin-wizards
jeanlucas has joined #bitcoin-wizards
thomasanderson has joined #bitcoin-wizards
thomasanderson has quit [Ping timeout: 268 seconds]
thomasanderson has joined #bitcoin-wizards
Dizzle has quit [Quit: Leaving...]
thomasanderson has quit [Ping timeout: 252 seconds]
midnightmagic has quit [Ping timeout: 264 seconds]
shesek has joined #bitcoin-wizards
shesek has quit [Changing host]
shesek has joined #bitcoin-wizards
thomasanderson has joined #bitcoin-wizards
thomasanderson has quit [Ping timeout: 268 seconds]
midnightmagic has joined #bitcoin-wizards
thomasanderson has joined #bitcoin-wizards
thomasanderson has quit [Ping timeout: 264 seconds]
Zenton has quit [Ping timeout: 272 seconds]
shesek has quit [Read error: Connection reset by peer]
shesek has joined #bitcoin-wizards
shesek has quit [Changing host]
shesek has joined #bitcoin-wizards
sipa has joined #bitcoin-wizards
thomasanderson has joined #bitcoin-wizards
thomasanderson has quit [Ping timeout: 268 seconds]
thomasanderson has joined #bitcoin-wizards
thomasanderson has quit [Ping timeout: 250 seconds]
shesek has quit [Read error: Connection reset by peer]
shesek has joined #bitcoin-wizards
shesek has quit [Changing host]
shesek has joined #bitcoin-wizards
shesek has quit [Read error: No route to host]
tromp has quit [Remote host closed the connection]
tromp has joined #bitcoin-wizards
shesek has joined #bitcoin-wizards
Dyaheon has quit [Ping timeout: 246 seconds]
shesek has quit [Read error: Connection reset by peer]
thomasanderson has joined #bitcoin-wizards
thomasanderson has quit [Ping timeout: 264 seconds]
valwal has quit [Quit: Connection closed for inactivity]
Emcy has quit [Remote host closed the connection]
thomasanderson has joined #bitcoin-wizards
deusexbeer has quit [Ping timeout: 246 seconds]
thomasanderson has quit [Ping timeout: 250 seconds]
deusexbeer has joined #bitcoin-wizards
harrigan has quit [Ping timeout: 250 seconds]
harrigan has joined #bitcoin-wizards
shesek has joined #bitcoin-wizards
Emcy has joined #bitcoin-wizards
tromp has quit [Remote host closed the connection]
tromp has joined #bitcoin-wizards
shesek has quit [Read error: No route to host]
shesek has joined #bitcoin-wizards
shesek has quit [Changing host]
shesek has joined #bitcoin-wizards
Guyver2 has joined #bitcoin-wizards
thomasanderson has joined #bitcoin-wizards
thomasanderson has quit [Ping timeout: 268 seconds]
Zenton has joined #bitcoin-wizards
spinza has quit [Quit: Coyote finally caught up with me...]
spinza has joined #bitcoin-wizards
CheckDavid has joined #bitcoin-wizards
thomasanderson has joined #bitcoin-wizards
thomasanderson has quit [Ping timeout: 252 seconds]
root_____ has quit [Remote host closed the connection]
<gmaxwell>
If we assume block transmission by something like pieter's prior idea to use an error correcting code to resolve short id hash collisions, if we use a cuckoo table to order the transactions then the number of candidates for each position is limited by construction. I give an example bitstream and essentially linear decoding approach for cases where the candidate list is small.
<gmaxwell>
[I doubt this is that interesting, but it does give a concrete example that any canonical ordering is not as good as any other.]
shesek has quit [Read error: No route to host]
shesek has joined #bitcoin-wizards
shesek has quit [Read error: No route to host]
shesek has joined #bitcoin-wizards
shesek has quit [Changing host]
shesek has joined #bitcoin-wizards
Chris_Stewart_5 has quit [Ping timeout: 268 seconds]
thomasanderson has joined #bitcoin-wizards
michaels_ has quit [Remote host closed the connection]
shesek has quit [Read error: Connection reset by peer]
shesek has joined #bitcoin-wizards
Krellan has joined #bitcoin-wizards
tromp has joined #bitcoin-wizards
cdecker has joined #bitcoin-wizards
nephyrin has quit [Ping timeout: 268 seconds]
keymone has quit [Ping timeout: 250 seconds]
nephyrin has joined #bitcoin-wizards
tromp has quit [Remote host closed the connection]
tromp has joined #bitcoin-wizards
shesek has quit [Read error: Connection reset by peer]
shesek has joined #bitcoin-wizards
shesek has quit [Read error: Connection reset by peer]
keymone has joined #bitcoin-wizards
shesek has joined #bitcoin-wizards
shesek has quit [Read error: Connection reset by peer]
shesek has joined #bitcoin-wizards
shesek has quit [Changing host]
shesek has joined #bitcoin-wizards
tromp has quit [Remote host closed the connection]
tromp has joined #bitcoin-wizards
thomasanderson has quit [Ping timeout: 268 seconds]