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
oleganza has quit [Quit: oleganza]
thrmo has quit [Remote host closed the connection]
dnaleor has joined #bitcoin-wizards
meshcollider has quit [Quit: Connection closed for inactivity]
Belkaar has quit [Ping timeout: 252 seconds]
MaxSan has joined #bitcoin-wizards
Belkaar has joined #bitcoin-wizards
Belkaar has quit [Changing host]
Belkaar has joined #bitcoin-wizards
priidu has quit [Ping timeout: 240 seconds]
dabura667 has joined #bitcoin-wizards
meshcollider has joined #bitcoin-wizards
rmwb has quit [Remote host closed the connection]
rmwb has joined #bitcoin-wizards
d9b4bef9 has quit [Remote host closed the connection]
d9b4bef9 has joined #bitcoin-wizards
AaronvanW has quit [Remote host closed the connection]
LeMiner has quit [Read error: Connection reset by peer]
Chris_Stewart_5 has quit [Ping timeout: 240 seconds]
LeMiner has joined #bitcoin-wizards
priidu has joined #bitcoin-wizards
vicenteH has quit [Ping timeout: 255 seconds]
LeMiner has quit [Read error: Connection reset by peer]
LeMiner has joined #bitcoin-wizards
abpa has joined #bitcoin-wizards
laurentmt has joined #bitcoin-wizards
ryanofsky has quit [Quit: ZNC 1.6.5 - http://znc.in]
ryanofsky has joined #bitcoin-wizards
Aaronvan_ has joined #bitcoin-wizards
AaronvanW has quit [Ping timeout: 248 seconds]
laurentmt has quit [Quit: laurentmt]
AaronvanW has joined #bitcoin-wizards
daszorz2 has quit [Read error: Connection reset by peer]
Aaronvan_ has quit [Ping timeout: 246 seconds]
Guyver2 has joined #bitcoin-wizards
chjj has joined #bitcoin-wizards
coinsmurf has joined #bitcoin-wizards
packetsmurf has quit [Ping timeout: 248 seconds]
Ylbam has joined #bitcoin-wizards
CheckDavid has joined #bitcoin-wizards
Chris_Stewart_5 has joined #bitcoin-wizards
<maaku>
So since finalizing segwit is has become clear that script commitment version and script feature version are in fact two different script versions and should be separated. The commitment version specifies how the script is hashed to be checked against the witness commitment, and only really needs to be changed if this hashing mechanism changes.
<maaku>
E.g. MAST, or a natively merklized script like DEX or Simplicity
<maaku>
The 'script version' gating otherwise hard-fork script feature changes is logically separate and arguably should be in the witness. We can imagine that v0 should have interpreted the top stack element as "integer script version, then serialized script". a straight forward proposal to fix this is to do exactly that in script v1
<maaku>
I tried my hand yesterday at doing this as a soft-fork within the current consensus rules for v0, so as to not required a hashing type version change. This is the best I came up with:
<maaku>
Complex enough that it's probably not worth pursuing, but I'm curious if anyone can find a better, especially a significant better solution
<maaku>
The DROPs remove a variable number of witness stack elements, the pushes encode the serialized script, and the NOTIF makes sure only only one element is left on the stack for the CLEANSTACK rule
<maaku>
Whoops, should be this: <version> DROP2* DROP? (DEPTH (IF DROP DEPTH ENDIF)+)? (DEPTH NOTIF PUSH<520>[â¦]* PUSH<minimal, [1, 520]>[] ENDIF)? TRUE
alferz has joined #bitcoin-wizards
blackwraith has joined #bitcoin-wizards
priidu has quit [Ping timeout: 248 seconds]
vicenteH has joined #bitcoin-wizards
Dyaheon has joined #bitcoin-wizards
eck has quit [Quit: we out here]
eck has joined #bitcoin-wizards
eck has quit [Client Quit]
alferz has quit [Ping timeout: 240 seconds]
eck has joined #bitcoin-wizards
eck has quit [Client Quit]
Chris_Stewart_5 has quit [Ping timeout: 240 seconds]
eck has joined #bitcoin-wizards
eck has quit [Client Quit]
eck has joined #bitcoin-wizards
eck has quit [Client Quit]
eck has joined #bitcoin-wizards
eck has quit [Client Quit]
eck has joined #bitcoin-wizards
CheckDavid has quit [Quit: Connection closed for inactivity]
vicenteH has quit [Remote host closed the connection]
vicenteH has joined #bitcoin-wizards
CheckDavid has joined #bitcoin-wizards
meshcollider has joined #bitcoin-wizards
Chris_Stewart_5 has joined #bitcoin-wizards
Aaronvan_ has joined #bitcoin-wizards
Aaronva__ has joined #bitcoin-wizards
AaronvanW has quit [Ping timeout: 258 seconds]
Aaronvan_ has quit [Ping timeout: 240 seconds]
wraithm has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guyver2 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
isis has joined #bitcoin-wizards
Chris_Stewart_5 has quit [Ping timeout: 258 seconds]
sausage_factory has joined #bitcoin-wizards
blackwraith has quit [Ping timeout: 240 seconds]
dnaleor has joined #bitcoin-wizards
Murch has quit [Quit: Snoozing.]
dnaleor has quit [Ping timeout: 240 seconds]
CryptAxe has quit [Read error: Connection reset by peer]
CryptAxe_ has joined #bitcoin-wizards
dnaleor has joined #bitcoin-wizards
jtimon has quit [Ping timeout: 255 seconds]
dnaleor has quit [Quit: Leaving]
d9b4bef9 has quit [Remote host closed the connection]