View Source BitcoinLib.Script.Opcodes.Constants.Sixteen (BitcoinLib v0.4.7)

Based on https://en.bitcoin.it/wiki/Script

Word OP_16 Opcode 96 Hex 0x60 Input Nothing Output 16 The number 16 is pushed onto the stack.

Link to this section Summary

Functions

Returns <<0x60>>

The number 16 is pushed onto the stack.

v()

Returns 0x60

Link to this section Functions

@spec encode() :: <<_::8>>

Returns <<0x60>>

examples

Examples

iex> BitcoinLib.Script.Opcodes.Constants.Sixteen.encode()
<<0x60>>
Link to this function

execute(sixteen, remaining)

View Source

The number 16 is pushed onto the stack.

examples

Examples

iex> BitcoinLib.Script.Opcodes.Constants.Sixteen.execute(
...>  %BitcoinLib.Script.Opcodes.Constants.Sixteen{},
...>  [3]
...> )
{:ok, [16, 3]}
@spec v() :: 96

Returns 0x60

examples

Examples

iex> BitcoinLib.Script.Opcodes.Constants.Sixteen.v()
0x60