Documentation ¶
Index ¶
- func DeserializeUTXO(utxoBytes []byte) (entry externalapi.UTXOEntry, outpoint *externalapi.DomainOutpoint, err error)
- func IteratorWithDiff(iterator model.ReadOnlyUTXOSetIterator, diff model.UTXODiff) (model.ReadOnlyUTXOSetIterator, error)
- func NewMutableUTXODiff() model.MutableUTXODiff
- func NewUTXOCollection(utxoMap map[externalapi.DomainOutpoint]externalapi.UTXOEntry) model.UTXOCollection
- func NewUTXODiff() model.UTXODiff
- func NewUTXODiffFromCollections(toAdd, toRemove model.UTXOCollection) (model.UTXODiff, error)
- func NewUTXOEntry(amount uint64, scriptPubKey *externalapi.ScriptPublicKey, isCoinbase bool, ...) externalapi.UTXOEntry
- func SerializeUTXO(entry externalapi.UTXOEntry, outpoint *externalapi.DomainOutpoint) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeserializeUTXO ¶
func DeserializeUTXO(utxoBytes []byte) (entry externalapi.UTXOEntry, outpoint *externalapi.DomainOutpoint, err error)
DeserializeUTXO deserializes the given byte slice to UTXOEntry-outpoint pair
func IteratorWithDiff ¶
func IteratorWithDiff(iterator model.ReadOnlyUTXOSetIterator, diff model.UTXODiff) (model.ReadOnlyUTXOSetIterator, error)
IteratorWithDiff applies a UTXODiff to given utxo iterator
func NewMutableUTXODiff ¶
func NewMutableUTXODiff() model.MutableUTXODiff
NewMutableUTXODiff creates an empty mutable UTXO-Diff
func NewUTXOCollection ¶
func NewUTXOCollection(utxoMap map[externalapi.DomainOutpoint]externalapi.UTXOEntry) model.UTXOCollection
NewUTXOCollection creates a UTXO-Collection from the given map from outpoint to UTXOEntry
func NewUTXODiffFromCollections ¶
func NewUTXODiffFromCollections(toAdd, toRemove model.UTXOCollection) (model.UTXODiff, error)
NewUTXODiffFromCollections returns a new UTXODiff with the given toAdd and toRemove collections
func NewUTXOEntry ¶
func NewUTXOEntry(amount uint64, scriptPubKey *externalapi.ScriptPublicKey, isCoinbase bool, blockBlueScore uint64) externalapi.UTXOEntry
NewUTXOEntry creates a new utxoEntry representing the given txOut
func SerializeUTXO ¶
func SerializeUTXO(entry externalapi.UTXOEntry, outpoint *externalapi.DomainOutpoint) ([]byte, error)
SerializeUTXO returns the byte-slice representation for given UTXOEntry-outpoint pair
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.