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

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

Word OP_11 Opcode 91 Hex 0x5b Input Nothing Output 11 The number 11 is pushed onto the stack.

Link to this section Summary

Functions

Returns <<0x5b>>

The number 11 is pushed onto the stack.

v()

Returns 0x5b

Link to this section Functions

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

Returns <<0x5b>>

examples

Examples

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

execute(eleven, remaining)

View Source

The number 11 is pushed onto the stack.

examples

Examples

iex> BitcoinLib.Script.Opcodes.Constants.Eleven.execute(
...>  %BitcoinLib.Script.Opcodes.Constants.Eleven{},
...>  [3]
...> )
{:ok, [11, 3]}
@spec v() :: 91

Returns 0x5b

examples

Examples

iex> BitcoinLib.Script.Opcodes.Constants.Eleven.v()
0x5b