BSV-ex v0.1.0 BSV.Transaction.Output View Source
Module for parsing and serialising transaction outputs.
Link to this section Summary
Functions
Parse the given binary into a single transaction output. Returns a tuple containing the transaction output and the remaining binary data.
Serialises the given transaction output struct into a binary.
Link to this section Types
Transaction output
Link to this section Functions
Link to this function
parse(data, options \\ [])
View Sourceparse(binary(), keyword()) :: {BSV.Transaction.Output.t(), binary()}
Parse the given binary into a single transaction output. Returns a tuple containing the transaction output and the remaining binary data.
Options
The accepted options are:
:encoding- Optionally decode the binary with either the:base64or:hexencoding scheme.
Examples
BSV.Transaction.Output.parse(data)
{%BSV.Trasaction.Output{}, ""}
Link to this function
serialize(output, options \\ [])
View Sourceserialize(BSV.Transaction.Output.t(), keyword()) :: binary()
Serialises the given transaction output struct into a binary.
Options
The accepted options are:
:encode- Optionally encode the returned binary with either the:base64or:hexencoding scheme.
Examples
BSV.Transaction.Output.serialize(output)
<<binary>>