View Source BitcoinLib.Script.Opcodes.BitwiseLogic.EqualVerify (BitcoinLib v0.4.1)

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

Word OP_EQUALVERIFY Opcode 136 Hex 0x88 Input x1 x2 Output Nothing / fail Description Same as OP_EQUAL, but runs OP_VERIFY afterward.

Link to this section Summary

Functions

Returns <<0x88>>

Returns 1 if the inputs are exactly equal, 0 otherwise, and runs OP_VERIFY afterward.

v()

Returns 0x88

Link to this section Functions

@spec encode() :: <<_::8>>

Returns <<0x88>>

examples

Examples

iex> BitcoinLib.Script.Opcodes.BitwiseLogic.EqualVerify.encode()
<<0x88>>
@spec execute(%BitcoinLib.Script.Opcodes.BitwiseLogic.EqualVerify{}, list()) ::
  {:ok, list()} | {:error, binary()}

Returns 1 if the inputs are exactly equal, 0 otherwise, and runs OP_VERIFY afterward.

examples

Examples

iex> BitcoinLib.Script.Opcodes.BitwiseLogic.EqualVerify.execute(0x88, [3, 3, 4])
{:ok, [4]}
@spec v() :: 136

Returns 0x88

examples

Examples

iex> BitcoinLib.Script.Opcodes.BitwiseLogic.EqualVerify.v()
0x88