View Source BitcoinLib.Script.Opcodes.Arithmetic.LessThan (BitcoinLib v0.4.7)
Based on https://en.bitcoin.it/wiki/Script
Word OP_LESSTHAN Opcode 159 Hex 0x9f Input in Output out Returns 1 if a is less than b, 0 otherwise.
Link to this section Summary
Link to this section Types
@type t() :: BitcoinLib.Script.Opcodes.Arithmetic.LessThan
Link to this section Functions
@spec encode() :: <<_::8>>
Returns <<0x9f>>
examples
Examples
iex> BitcoinLib.Script.Opcodes.Arithmetic.LessThan.encode()
<<0x9f>>
Returns 1 if a is less than b, 0 otherwise.
examples
Examples
iex> BitcoinLib.Script.Opcodes.Arithmetic.LessThan.execute(
...> %BitcoinLib.Script.Opcodes.Arithmetic.LessThan{},
...> [2, 3, 4]
...> )
{:ok, [1, 4]}
@spec v() :: 159
Returns 0x9f
examples
Examples
iex> BitcoinLib.Script.Opcodes.Arithmetic.LessThan.v()
0x9f