Versions in this module Expand all Collapse all v1 v1.1.3 Apr 7, 2020 v1.1.1 Apr 7, 2020 Changes in this version + func DHASH(data []byte) [32]byte + type NodeID [32]byte + func (n NodeID) IsEmpty() bool + type TransactionInput struct + PreviousOutput TransactionInputOutpoint + PublicKey []byte + Script []byte + Sequence uint32 + WalletAddress []byte + func (ti *TransactionInput) MarshalJSON() ([]byte, error) + func (ti *TransactionInput) UnmarshalJSON(data []byte) error + type TransactionInputOutpoint struct + Address string + Hash [32]byte + Index uint32 + Value uint64 + func (tio *TransactionInputOutpoint) MarshalJSON() ([]byte, error) + func (tio *TransactionInputOutpoint) UnmarshalJSON(data []byte) error + func (tio TransactionInputOutpoint) ToBytes() []byte + type TransactionOutput struct + Index uint32 + NodeID NodeID + Payload []byte + Script []byte + Value uint64 + WalletAddress []byte + func (to *TransactionOutput) MarshalJSON() ([]byte, error) + func (to *TransactionOutput) UnmarshalJSON(data []byte) error + type Tx struct + Hash [32]byte + Inputs []TransactionInput + LockTime uint32 + Outputs []TransactionOutput + Version uint32 + func NewTransaction(unspents []*TransactionInputOutpoint, toAddresses map[string]uint64, ...) (*Tx, error) + func (tx *Tx) GenerateHash() [32]byte + func (tx *Tx) MarshalJSON() ([]byte, error) + func (tx *Tx) MsgForSign(hash [32]byte, index uint32) []byte + func (tx *Tx) UnmarshalJSON(data []byte) error