utxo

package
v0.12.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2024 License: ISC Imports: 11 Imported by: 0

Documentation

Index

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

IteratorWithDiff applies a UTXODiff to given utxo iterator

func NewMutableUTXODiff

func NewMutableUTXODiff() externalapi.MutableUTXODiff

NewMutableUTXODiff creates an empty mutable UTXO-Diff

func NewUTXOCollection

NewUTXOCollection creates a UTXO-Collection from the given map from outpoint to UTXOEntry

func NewUTXODiff

func NewUTXODiff() externalapi.UTXODiff

NewUTXODiff creates an empty UTXODiff

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, blockDAAScore 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL