View Source BitcoinLib.Script.Opcodes.Reserved.Nop1 (BitcoinLib v0.4.7)

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

Word OP_NOP1 Opcode 176 Hex 0xb0 Input nothing Output nothing The word is ignored. Does not mark transaction as invalid.

Link to this section Summary

Functions

Returns <<0xb0>>

The number 1 is pushed onto the stack.

v()

Returns 0xb0

Link to this section Types

@type t() :: BitcoinLib.Script.Opcodes.Reserved.Nop1

Link to this section Functions

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

Returns <<0xb0>>

examples

Examples

iex> BitcoinLib.Script.Opcodes.Reserved.Nop1.encode()
<<0xb0>>
Link to this function

execute(nop1, remaining)

View Source
@spec execute(t(), list()) :: {:ok, list()}

The number 1 is pushed onto the stack.

examples

Examples

iex> BitcoinLib.Script.Opcodes.Reserved.Nop1.execute(
...>  %BitcoinLib.Script.Opcodes.Reserved.Nop1{},
...>  [3]
...> )
{:ok, [3]}
@spec v() :: 176

Returns 0xb0

examples

Examples

iex> BitcoinLib.Script.Opcodes.Reserved.Nop1.v()
0xb0