Documentation ¶
Index ¶
- func DeserializeUTXO(utxoBytes []byte) (entry externalapi.UTXOEntry, outpoint *externalapi.DomainOutpoint, err error)
- func IteratorWithDiff(iterator externalapi.ReadOnlyUTXOSetIterator, diff externalapi.UTXODiff) (externalapi.ReadOnlyUTXOSetIterator, error)
- func NewMutableUTXODiff() externalapi.MutableUTXODiff
- func NewUTXOCollection(utxoMap map[externalapi.DomainOutpoint]externalapi.UTXOEntry) externalapi.UTXOCollection
- func NewUTXODiff() externalapi.UTXODiff
- func NewUTXODiffFromCollections(toAdd, toRemove externalapi.UTXOCollection) (externalapi.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 externalapi.ReadOnlyUTXOSetIterator, diff externalapi.UTXODiff) (externalapi.ReadOnlyUTXOSetIterator, error)
IteratorWithDiff applies a UTXODiff to given utxo iterator
func NewMutableUTXODiff ¶
func NewMutableUTXODiff() externalapi.MutableUTXODiff
NewMutableUTXODiff creates an empty mutable UTXO-Diff
func NewUTXOCollection ¶
func NewUTXOCollection(utxoMap map[externalapi.DomainOutpoint]externalapi.UTXOEntry) externalapi.UTXOCollection
NewUTXOCollection creates a UTXO-Collection from the given map from outpoint to UTXOEntry
func NewUTXODiffFromCollections ¶
func NewUTXODiffFromCollections(toAdd, toRemove externalapi.UTXOCollection) (externalapi.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.