Documentation
¶
Index ¶
- func Add2PKH(address Address) []byte
- func Hash(s serializer) []byte
- func Int2Hex(n int64) []byte
- func NodeID(config config.Config) string
- func PK2Add(pk []byte, isHash bool) string
- type Account
- type Address
- type Block
- type BlockHeader
- type Chainid
- type Node
- type Transaction
- type TxIn
- type TxOut
- type UTXO
- type UtxoSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Block ¶
type Block struct { BH *BlockHeader Transactions []*Transaction }
func (*Block) Validate_hash ¶
type BlockHeader ¶
type Node ¶
type Transaction ¶
func CoinbaseTx ¶
func CoinbaseTx(to Address, amount int) *Transaction
func (*Transaction) CheckHash ¶
func (tx *Transaction) CheckHash() bool
func (*Transaction) IsCoinbase ¶
func (tx *Transaction) IsCoinbase() bool
func (*Transaction) IsValid ¶
func (tx *Transaction) IsValid(u []*UTXO) bool
func (*Transaction) SnapShot ¶
func (tx *Transaction) SnapShot() *Transaction
deep copy of transaction
func (Transaction) TrimmeTX ¶
func (tx Transaction) TrimmeTX() *Transaction
Source Files
¶
Click to show internal directories.
Click to hide internal directories.