Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrExceedSignatureCount = errors.New("exceed signature count")
)
transaction errors
Functions ¶
func IsMainChain ¶
func IsMainChain(ChainCoord *common.Coordinate) bool
IsMainChain returns that the target chain is the main chain or not
Types ¶
type Base ¶
Base is the parts of transaction functions that are not changed by derived one
type Signed ¶
Signed is the signature of the transaction creator
type Transaction ¶
type Transaction interface { io.WriterTo io.ReaderFrom json.Marshaler Type() Type Timestamp() uint64 Hash() hash.Hash256 IsUTXO() bool }
Transaction is an interface that defines common transaction functions
type TxIn ¶
TxIn represents the position of the UTXO
type TxOut ¶
type TxOut struct { Amount *amount.Amount PublicHash common.PublicHash }
TxOut represents recipient of the UTXO
func (*TxOut) MarshalJSON ¶
MarshalJSON is a marshaler function
Click to show internal directories.
Click to hide internal directories.