View Source BitcoinLib.Script.Opcodes.Arithmetic.Min (BitcoinLib v0.4.7)
Based on https://en.bitcoin.it/wiki/Script
Word OP_MIN Opcode 163 Hex 0xa3 Input a b Output out Returns the smaller of a and b.
Link to this section Summary
Link to this section Types
@type t() :: BitcoinLib.Script.Opcodes.Arithmetic.Min
Link to this section Functions
@spec encode() :: <<_::8>>
Returns <<0xa3>>
examples
Examples
iex> BitcoinLib.Script.Opcodes.Arithmetic.Min.encode()
<<0xa3>>
Returns the smaller of a and b.
examples
Examples
iex> BitcoinLib.Script.Opcodes.Arithmetic.Min.execute(
...> %BitcoinLib.Script.Opcodes.Arithmetic.Min{},
...> [2, 3, 1]
...> )
{:ok, [2, 1]}
@spec v() :: 163
Returns 0xa3
examples
Examples
iex> BitcoinLib.Script.Opcodes.Arithmetic.Min.v()
0xa3