tx_io

package
v0.0.0-...-cf6e08f Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2018 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TXInput

type TXInput struct {
	PreviousTx []byte
	VOut       int
	Signature  []byte
	PubKey     []byte
}

func (TXInput) UsesKey

func (in TXInput) UsesKey(pubKeyHash []byte) bool

type TXOutput

type TXOutput struct {
	Value      float64
	PubKeyHash []byte
}

func NewTXOutput

func NewTXOutput(value float64, address string) TXOutput

func (TXOutput) IsLockedWithKey

func (out TXOutput) IsLockedWithKey(pubKeyHash []byte) bool

func (*TXOutput) Lock

func (out *TXOutput) Lock(address []byte)

type TXOutputs

type TXOutputs struct {
	Outputs []TXOutput
}

func DeserializeOutputs

func DeserializeOutputs(data []byte) TXOutputs

func (TXOutputs) Serialize

func (outs TXOutputs) Serialize() []byte

Jump to

Keyboard shortcuts

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