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

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 Types

@type t() :: BitcoinLib.Script.Opcodes.FlowControl.Verify

Link to this section Functions

@spec execute(t(), 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