Discussion in 'Technical Development' started by SG-O, Mar 12, 2016.

  1. 2017/12/15 - Decred v1.1.2 released! → Release Notes  → Downloads
  1. SG-O

    SG-O Member

    Jan 13, 2016
    Software Dev
    Milky Way
    I have some questions about the TX script language used by Decred.
    Am I correct that most of the opcodes behave the same way as they do in bitcoin?
    Are ther any other additions then these?
    OP_SSTX = 0xba // 186
    OP_SSGEN = 0xbb // 187
    OP_SSRTX = 0xbc // 188
    OP_SSTXCHANGE = 0xbd // 189
    OP_CHECKSIGALT = 0xbe // 190
    OP_CHECKSIGALTVERIFY = 0xbf // 191

    Why is there (if there is no) no Blake 256 hashing function?
    Are all opcodes enabled?
    Will non standard transactions be relayed?

    Thanks for any information as this would help me a lot developing a script interpreter on Java.
    eshriek likes this.
  2. ceejep

    ceejep Sr. Member

    Dec 14, 2015
    All of the Bitcoin OP codes have been re-enabled, some with new or divergent functionality. Please see opcode.go.

    186-189 are simple stake tags that are used to handle consensus rules about output spendability.

    OP_CHECKSIGALT is a new OP_CHECKSIG that is easily upgradeable to support new digital signature algorithms..

    These are all allowed on mainnet under P2SH scripts. There are strict rules about the stake OP codes, see the reference implementation.

Share This Page