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

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

Word OP_12 Opcode 92 Hex 0x5c Input Nothing Output 12 The number 12 is pushed onto the stack.

Link to this section Summary

Functions

Returns <<0x5c>>

The number 12 is pushed onto the stack.

v()

Returns 0x5c

Link to this section Functions

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

Returns <<0x5c>>

examples

Examples

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

execute(twelve, remaining)

View Source

The number 12 is pushed onto the stack.

examples

Examples

iex> BitcoinLib.Script.Opcodes.Constants.Twelve.execute(
...>  %BitcoinLib.Script.Opcodes.Constants.Twelve{},
...>  [3]
...> )
{:ok, [12, 3]}
@spec v() :: 92

Returns 0x5c

examples

Examples

iex> BitcoinLib.Script.Opcodes.Constants.Twelve.v()
0x5c