View Source BitcoinLib.Script.Opcodes.Arithmetic.BoolOr (BitcoinLib v0.4.7)
Based on https://en.bitcoin.it/wiki/Script
Word OP_BOOLOR Opcode 155 Hex 0x9b Input a b Output out If a or b is not 0, the output is 1. Otherwise 0.
Link to this section Summary
Link to this section Types
@type t() :: BitcoinLib.Script.Opcodes.Arithmetic.BoolOr
Link to this section Functions
@spec encode() :: <<_::8>>
Returns <<0x9b>>
examples
Examples
iex> BitcoinLib.Script.Opcodes.Arithmetic.BoolOr.encode()
<<0x9b>>
If a or b is not 0, the output is 1. Otherwise 0.
examples
Examples
iex> BitcoinLib.Script.Opcodes.Arithmetic.BoolOr.execute(
...> %BitcoinLib.Script.Opcodes.Arithmetic.BoolOr{},
...> [0, 3, 1]
...> )
{:ok, [1, 1]}
@spec v() :: 155
Returns 0x9b
examples
Examples
iex> BitcoinLib.Script.Opcodes.Arithmetic.BoolOr.v()
0x9b