utxo

package
v0.0.0-...-6db25f1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UTXO

type UTXO struct {
	TxID       []byte
	OutIndex   int
	Value      float64
	PubKeyHash []byte
}

type UTXOSet

type UTXOSet struct {
	// contains filtered or unexported fields
}

func NewUTXOSet

func NewUTXOSet() *UTXOSet

func (*UTXOSet) Add

func (u *UTXOSet) Add(txID []byte, outIndex int, value float64, pubKeyHash []byte)

func (*UTXOSet) Get

func (u *UTXOSet) Get(txID []byte, outIndex int) *UTXO

func (*UTXOSet) Remove

func (u *UTXOSet) Remove(txID []byte, outIndex int)

Jump to

Keyboard shortcuts

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