View Source BitcoinLib.Script.Opcodes.Data (BitcoinLib v0.4.7)

Adds between 1 and 75 bytes of data into the stack

Link to this section Summary

Functions

Adds between 1 and 75 bytes of data into the stack

Link to this section Types

@type t() :: BitcoinLib.Script.Opcodes.Data

Link to this section Functions

@spec encode(t()) :: bitstring()

Adds between 1 and 75 bytes of data into the stack

examples

Examples

iex> %BitcoinLib.Script.Opcodes.Data{value: <<1, 2, 3, 4, 5>>}
...> |> BitcoinLib.Script.Opcodes.Data.encode()
<<5, 1, 2, 3, 4, 5>>