View Source BitcoinLib.Script.Opcodes.Data (BitcoinLib v0.2.0-pre3)

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 Functions

@spec encode(%BitcoinLib.Script.Opcodes.Data{value: term()}) :: 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>>