mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-09-14 05:20:11 +00:00
21 lines
688 B
Go
21 lines
688 B
Go
package externalapi
|
|
|
|
// UTXOEntry houses details about an individual transaction output in a utxo
|
|
// set such as whether or not it was contained in a coinbase tx, the blue
|
|
// score of the block that accepts the tx, its public key script, and how
|
|
// much it pays.
|
|
type UTXOEntry interface {
|
|
Amount() uint64
|
|
ScriptPublicKey() *ScriptPublicKey // The public key script for the output.
|
|
BlockBlueScore() uint64 // Blue score of the block accepting the tx.
|
|
IsCoinbase() bool
|
|
Equal(other UTXOEntry) bool
|
|
}
|
|
|
|
// OutpointAndUTXOEntryPair is an outpoint along with its
|
|
// respective UTXO entry
|
|
type OutpointAndUTXOEntryPair struct {
|
|
Outpoint *DomainOutpoint
|
|
UTXOEntry UTXOEntry
|
|
}
|