View Source BitcoinLib.Script.Opcodes.FlowControl.Verify (BitcoinLib v0.4.3)

Based on https://en.bitcoin.it/wiki/Script

Word OP_VERIFY Opcode 105 Hex 0x69 Input True / false Output Nothing / fail Description Marks transaction as invalid if top stack value is not true. The top stack value is removed.

Link to this section Summary

Functions

Marks transaction as invalid if top stack value is not true. The top stack value is removed.

v()

Returns 0x69

Link to this section Functions

@spec execute(%BitcoinLib.Script.Opcodes.FlowControl.Verify{}, list()) ::
  {:ok, list()} | {:error, binary()}

Marks transaction as invalid if top stack value is not true. The top stack value is removed.

examples

Examples

iex> stack = [1, 3]
...> %BitcoinLib.Script.Opcodes.FlowControl.Verify{}
...> |> BitcoinLib.Script.Opcodes.FlowControl.Verify.execute(stack)
{:ok, [3]}
@spec v() :: 105

Returns 0x69

examples

Examples

iex> BitcoinLib.Script.Opcodes.FlowControl.Verify.v()
0x69