UTxO

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container[T any] interface {
	EqualTo(other T) bool
}

type UTxO

type UTxO struct {
	Input  TransactionInput.TransactionInput
	Output TransactionOutput.TransactionOutput
	// contains filtered or unexported fields
}

func (UTxO) Clone

func (u UTxO) Clone() UTxO

*

Clone creates a deep copy of the UTxO instance.

Returns:
	UTxO: A new UTxO instance.

func (UTxO) EqualTo

func (u UTxO) EqualTo(other any) bool

*

EqualTo checks if the UTxO is equal to another object.

Params:
	other interface{}: The object to compare with the UTxO.

Returns:
	bool: True if the UTxO is equal to the proved object, false otherwise.

func (UTxO) GetKey added in v1.0.3

func (u UTxO) GetKey() string

*

GetKey returns a unique key for the UTxO through its
transaction ID and index.

Returns:
	string: The unique key representing the UTxO.

Jump to

Keyboard shortcuts

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