View Source BitcoinLib.Script.Opcodes.Constants.Eight (BitcoinLib v0.4.7)
Based on https://en.bitcoin.it/wiki/Script
Word OP_8 Opcode 88 Hex 0x58 Input Nothing Output 8 The number 8 is pushed onto the stack.
Link to this section Summary
Link to this section Functions
@spec encode() :: <<_::8>>
Returns <<0x58>>
examples
Examples
iex> BitcoinLib.Script.Opcodes.Constants.Eight.encode()
<<0x58>>
The number 8 is pushed onto the stack.
examples
Examples
iex> BitcoinLib.Script.Opcodes.Constants.Eight.execute(
...> %BitcoinLib.Script.Opcodes.Constants.Eight{},
...> [3]
...> )
{:ok, [8, 3]}
@spec v() :: 88
Returns 0x58
examples
Examples
iex> BitcoinLib.Script.Opcodes.Constants.Eight.v()
0x58