Bitcoin Forum
November 10, 2024, 01:01:43 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Use cases for SegWit script versioning  (Read 856 times)
tomtomtom7 (OP)
Jr. Member
*
Offline Offline

Activity: 38
Merit: 18


View Profile
May 11, 2017, 08:00:07 AM
Merited by ABCbits (1)
 #1

I would like to understand the advantages of the script versioning introduced in SegWit.

As I understand, script versioning allows you to change the meaning of existing opcodes, where currently we can only add opcodes.

Why is this needed? Isn't the power of this simple stack based language that you can add *any* functionality simply by adding new opcodes, (and can do so indefinitely with an OP_EXT), without the need for versioning?

Isn't that a very clean mechanism to update this language while retaining backwards compatibility? Especially because due to the immutability you can never deprecate old functionality.



achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3542
Merit: 6886


Just writing some code


View Profile WWW
May 11, 2017, 01:37:07 PM
Merited by ABCbits (1)
 #2

Script versioning is required in order to redefine opcodes or just even add new ones. Added new opcodes cannot be done through a soft fork (except by redefining the OP_NOPX opcodes) since old software will not know what an opcode is and fail to verify the program. With script versioning, the old software can just ignore newly versioned scripts and assume that they are true so new opcodes and opcode redefinitions can be done through soft forks.

JackH
Sr. Member
****
Offline Offline

Activity: 381
Merit: 255


View Profile
May 11, 2017, 05:10:29 PM
 #3

So what opcodes are on the plate? Any new ones being proposed yet?

<helo> funny that this proposal grows the maximum block size to 8GB, and is seen as a compromise
<helo> oh, you don't like a 20x increase? well how about 8192x increase?
<JackH> lmao
cr1776
Legendary
*
Offline Offline

Activity: 4214
Merit: 1313


View Profile
May 11, 2017, 05:27:31 PM
 #4

So what opcodes are on the plate? Any new ones being proposed yet?

If you look at this page:
https://bitcoincore.org/en/2016/06/24/segwit-next-steps/

Right after this "Some ideas for future upgrades using this mechanism are described below:" you will see some uses.

(Just above that in the "Future upgrades made easier by segwit" section it describes some improvements to opcodes included with SegWit.)

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!