Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ZeroHash = [32]byte{0}
ZeroHash represents a hash of all zeroes.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { *Header Transactions []*Transaction }
Block represents a proof of work block on the Alvalor base layer.
type Entity ¶
type Entity interface {
GetHash() Hash
}
Entity is any data structure that returns a unique ID.
type Header ¶
type Header struct { Hash Hash Parent Hash State Hash Delta Hash Miner Hash Diff uint64 Nonce uint64 Time time.Time }
Header represents the header data of a block that will be hashed.
type Transaction ¶
type Transaction struct { Hash Hash Transfers []*Transfer Fees []*Fee Data []byte Nonce uint64 Signatures [][]byte }
Transaction represents an atomic standard transaction on the Alvalor network.
func (*Transaction) GetHash ¶
func (tx *Transaction) GetHash() Hash
GetHash returns the unique hash of the transaction.
Click to show internal directories.
Click to hide internal directories.