Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { Header *BlockHeader Data []*Transaction }
func CreateBlock ¶
func CreateBlock(lastBlockHeader *BlockHeader, txs []*Transaction, minerEth common.Address, privateKey crypto.PrivKey, eproof *types.ElectionProof) (*Block, error)
func GenesisBlock ¶
func GenesisBlock() *Block
type BlockHeader ¶
type Transaction ¶
type Transaction struct { Hash []byte MerkleProof merkletree.Proof // sets when transaction is added to block Timestamp time.Time Data []byte }
func CreateTransaction ¶
func CreateTransaction(data []byte) *Transaction
func (*Transaction) ValidateHash ¶
func (tx *Transaction) ValidateHash() bool
Click to show internal directories.
Click to hide internal directories.