Elixium Core v0.6.3 Elixium.Utxo View Source

Functionality specific to UTXOs

Link to this section Summary

Functions

Returns a hash representation of a given utxo (to be used as an input for signature)

Takes in a utxo received from a peer which may have malicious or extra attributes attached. Removes all extra parameters which are not defined explicitly by the utxo struct

Link to this section Functions

Link to this function hash(utxo) View Source
hash(Elixium.Utxo) :: binary()

Returns a hash representation of a given utxo (to be used as an input for signature)

Link to this function sanitize(unsanitized_utxo) View Source
sanitize(Elixium.Utxo) :: Elixium.Utxo

Takes in a utxo received from a peer which may have malicious or extra attributes attached. Removes all extra parameters which are not defined explicitly by the utxo struct.