View Source BitcoinLib.Script.Opcodes.Constants.Seven (BitcoinLib v0.4.7)
Based on https://en.bitcoin.it/wiki/Script
Word OP_7 Opcode 87 Hex 0x57 Input Nothing Output 7 The number 7 is pushed onto the stack.
Link to this section Summary
Link to this section Functions
@spec encode() :: <<_::8>>
Returns <<0x57>>
examples
Examples
iex> BitcoinLib.Script.Opcodes.Constants.Seven.encode()
<<0x57>>
The number 7 is pushed onto the stack.
examples
Examples
iex> BitcoinLib.Script.Opcodes.Constants.Seven.execute(
...> %BitcoinLib.Script.Opcodes.Constants.Seven{},
...> [3]
...> )
{:ok, [7, 3]}
@spec v() :: 87
Returns 0x57
examples
Examples
iex> BitcoinLib.Script.Opcodes.Constants.Seven.v()
0x57