View Source BitcoinLib.Script.Opcodes.PseudoWords.InvalidOpcode (BitcoinLib v0.4.7)
Based on https://en.bitcoin.it/wiki/Script
Word OP_INVALIDOPCODE Opcode 255 Hex 0xff Matches any opcode that is not yet assigned.
Link to this section Summary
Link to this section Functions
@spec encode() :: <<_::8>>
Returns <<0xff>>
examples
Examples
iex> BitcoinLib.Script.Opcodes.PseudoWords.InvalidOpcode.encode()
<<0xff>>
Matches any opcode that is not yet assigned.
Will fail by design.
examples
Examples
iex> BitcoinLib.Script.Opcodes.PseudoWords.InvalidOpcode.execute(
...> %BitcoinLib.Script.Opcodes.PseudoWords.InvalidOpcode{},
...> [3]
...> )
{:error, "hit a OP_INVALIDOPCODE"}
@spec v() :: 255
Returns 0xff
examples
Examples
iex> BitcoinLib.Script.Opcodes.PseudoWords.InvalidOpcode.v()
0xff