View Source BitcoinLib.Script.Opcodes.Constants.Zero (BitcoinLib v0.2.0-pre1)
Based on https://en.bitcoin.it/wiki/Script
Word OP_0, OP_FALSE Opcode 0 Hex 0x00 Input Nothing. Output (empty value) Description An empty array of bytes is pushed onto the stack. (This is not a no-op: an item is added to the stack.)
Link to this section Summary
Link to this section Functions
@spec encode() :: <<_::8>>
Returns <<0>>
examples
Examples
iex> BitcoinLib.Script.Opcodes.Constants.Zero.encode() <<0>>
An empty array of bytes is pushed onto the stack.
examples
Examples
iex> BitcoinLib.Script.Opcodes.Constants.Zero.execute( ...> %BitcoinLib.Script.Opcodes.Constants.Zero{}, ...> [3] ...> )
@spec v() :: 0
Returns 0
examples
Examples
iex> BitcoinLib.Script.Opcodes.Constants.Zero.v() 0