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

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

Word OP_5 Opcode 85 Hex 0x55 Input Nothing Output 5 The number 5 is pushed onto the stack.

Link to this section Summary

Functions

Returns <<0x55>>

The number 5 is pushed onto the stack.

v()

Returns 0x55

Link to this section Functions

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

Returns <<0x55>>

examples

Examples

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

execute(five, remaining)

View Source

The number 5 is pushed onto the stack.

examples

Examples

iex> BitcoinLib.Script.Opcodes.Constants.Five.execute(
...>  %BitcoinLib.Script.Opcodes.Constants.Five{},
...>  [3]
...> )
{:ok, [5, 3]}
@spec v() :: 85

Returns 0x55

examples

Examples

iex> BitcoinLib.Script.Opcodes.Constants.Five.v()
0x55