txout

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: BSD-2-Clause Imports: 13 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCompress = errors.New("nil TxoutCompressor receiver")

Functions

func CompressAmount

func CompressAmount(amt amount.Amount) uint64

func DecompressAmount

func DecompressAmount(x uint64) amount.Amount

Types

type TxOut

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

func NewTxOut

func NewTxOut(value amount.Amount, scriptPubKey *script.Script) *TxOut

func (*TxOut) CheckValue

func (txOut *TxOut) CheckValue() error

func (*TxOut) Decode

func (txOut *TxOut) Decode(reader io.Reader) error

func (*TxOut) Encode

func (txOut *TxOut) Encode(writer io.Writer) error

func (*TxOut) EncodeSize

func (txOut *TxOut) EncodeSize() uint32

func (*TxOut) GetDustThreshold

func (txOut *TxOut) GetDustThreshold(minRelayTxFee *util.FeeRate) int64

func (*TxOut) GetPubKeyType

func (txOut *TxOut) GetPubKeyType() (pubKeyType int, isStandard bool)

func (*TxOut) GetScriptPubKey

func (txOut *TxOut) GetScriptPubKey() *script.Script

func (*TxOut) GetValue

func (txOut *TxOut) GetValue() amount.Amount

func (*TxOut) IsDust

func (txOut *TxOut) IsDust(minRelayTxFee *util.FeeRate) bool

func (*TxOut) IsEqual

func (txOut *TxOut) IsEqual(out *TxOut) bool

func (*TxOut) IsNull

func (txOut *TxOut) IsNull() bool

func (*TxOut) IsSpendable

func (txOut *TxOut) IsSpendable() bool

func (*TxOut) IsStandard added in v0.0.3

func (txOut *TxOut) IsStandard() (pubKeyType int, isStandard bool)

func (*TxOut) Serialize

func (txOut *TxOut) Serialize(writer io.Writer) error

func (*TxOut) SerializeSize

func (txOut *TxOut) SerializeSize() uint32

func (*TxOut) SetNull

func (txOut *TxOut) SetNull()

func (*TxOut) SetScriptPubKey

func (txOut *TxOut) SetScriptPubKey(s *script.Script)

func (*TxOut) SetValue

func (txOut *TxOut) SetValue(v amount.Amount)

func (*TxOut) String

func (txOut *TxOut) String() string

func (*TxOut) Unserialize

func (txOut *TxOut) Unserialize(reader io.Reader) error

type TxoutCompressor

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

func NewTxoutCompressor

func NewTxoutCompressor(txout *TxOut) *TxoutCompressor

func (*TxoutCompressor) Serialize

func (tc *TxoutCompressor) Serialize(w io.Writer) error

func (*TxoutCompressor) Unserialize

func (tc *TxoutCompressor) Unserialize(r io.Reader) error

Jump to

Keyboard shortcuts

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