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