package constant
- Alphabetic
- Public
- Protected
Type Members
- trait BytesToPushOntoStack extends ScriptOperation
Created by chris on 1/9/16.
Created by chris on 1/9/16. Represents a the amount of bytes that need to be pushed onto the stack
- sealed abstract class ConstantInterpreter extends AnyRef
Created by chris on 1/24/16.
- sealed abstract class ScriptConstant extends ScriptToken
A constant in the Script language for instance as String or a number.
- sealed abstract class ScriptNumber extends ScriptConstant with Ordered[ScriptNumber]
Represents a ScriptNumber in the Script language.
- sealed abstract class ScriptNumberOperation extends ScriptNumber with ScriptOperation
Represents a ScriptNumberOperation where the the number in the operation is pushed onto the stack i.e.
Represents a ScriptNumberOperation where the the number in the operation is pushed onto the stack i.e. OP_0 would be push 0 onto the stack, OP_1 would be push 1 onto the stack.
- trait ScriptNumberUtil extends AnyRef
Created by chris on 6/5/16.
Created by chris on 6/5/16. Numbers in script are unique in the fact that they don't follow a conventional signed numbering system such as ones complement or twos complement. The bitcoin protocol uses little endian notation which means the most significant bit indicates the sign on the number we are interpreting. The rest of the bits are used to determine what that number is. See this irc log for more info https://botbot.me/freenode/bitcoin-core-dev/2016-06-06/?tz=America/Chicago
- trait ScriptOperation extends ScriptToken
A script operation is an instruction that takes an input and gives an output Think of these as functions.
- sealed trait ScriptToken extends NetworkElement
This is the root class of Script.
This is the root class of Script. Every element in the Script language is a ScriptToken - think of this the same way you think about Object in Java.
- trait StackPushOperationFactory extends AnyRef
Created by chris on 3/28/16.
Value Members
- object BytesToPushOntoStack extends ScriptOperationFactory[BytesToPushOntoStack]
- object ConstantInterpreter extends ConstantInterpreter
- case object OP_0 extends ScriptNumberOperation with Product with Serializable
An empty array of bytes is pushed onto the stack.
An empty array of bytes is pushed onto the stack. (This is not a no-op: an item is added to the stack.)
- case object OP_1 extends ScriptNumberOperation with Product with Serializable
The number 1 is pushed onto the stack.
- case object OP_10 extends ScriptNumberOperation with Product with Serializable
The number 10 is pushed onto the stack.
- case object OP_11 extends ScriptNumberOperation with Product with Serializable
The number 11 is pushed onto the stack.
- case object OP_12 extends ScriptNumberOperation with Product with Serializable
The number 12 is pushed onto the stack.
- case object OP_13 extends ScriptNumberOperation with Product with Serializable
The number 13 is pushed onto the stack.
- case object OP_14 extends ScriptNumberOperation with Product with Serializable
The number 14 is pushed onto the stack.
- case object OP_15 extends ScriptNumberOperation with Product with Serializable
The number 15 is pushed onto the stack.
- case object OP_16 extends ScriptNumberOperation with Product with Serializable
The number 16 is pushed onto the stack.
- case object OP_1NEGATE extends ScriptNumberOperation with Product with Serializable
The number -1 is pushed onto the stack.
- case object OP_2 extends ScriptNumberOperation with Product with Serializable
The number 2 is pushed onto the stack.
- case object OP_3 extends ScriptNumberOperation with Product with Serializable
The number 3 is pushed onto the stack.
- case object OP_4 extends ScriptNumberOperation with Product with Serializable
The number 4 is pushed onto the stack.
- case object OP_5 extends ScriptNumberOperation with Product with Serializable
The number 5 is pushed onto the stack.
- case object OP_6 extends ScriptNumberOperation with Product with Serializable
The number 6 is pushed onto the stack.
- case object OP_7 extends ScriptNumberOperation with Product with Serializable
The number 7 is pushed onto the stack.
- case object OP_8 extends ScriptNumberOperation with Product with Serializable
The number 8 is pushed onto the stack.
- case object OP_9 extends ScriptNumberOperation with Product with Serializable
The number 9 is pushed onto the stack.
- case object OP_FALSE extends ScriptNumberOperation with Product with Serializable
An empty array of bytes is pushed onto the stack.
An empty array of bytes is pushed onto the stack. (This is not a no-op: an item is added to the stack.)
- case object OP_PUSHDATA1 extends ScriptOperation with Product with Serializable
The next byte contains the number of bytes to be pushed onto the stack.
- case object OP_PUSHDATA2 extends ScriptOperation with Product with Serializable
The next two bytes contain the number of bytes to be pushed onto the stack.
- case object OP_PUSHDATA4 extends ScriptOperation with Product with Serializable
The next four bytes contain the number of bytes to be pushed onto the stack.
- case object OP_TRUE extends ScriptNumberOperation with Product with Serializable
The number 1 is pushed onto the stack.
- object ScriptConstant extends Factory[ScriptConstant]
- object ScriptNumber extends Factory[ScriptNumber] with NumberCache[ScriptNumber]
- object ScriptNumberOperation extends ScriptOperationFactory[ScriptNumberOperation]
- object ScriptNumberUtil extends ScriptNumberUtil
- object StackPushOperationFactory extends StackPushOperationFactory