Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Calculate_Hash ¶
func Change_Block ¶
func Change_Block(block *Block)
func Change_Block_Menu ¶
func Change_Block_Menu()
func DisplayMerkelTree ¶
func DisplayMerkelTree(root *Node)
func Display_Blocks ¶
func Display_Blocks(Last_block *Block)
func Mine_Block ¶
func Verify_Chain ¶
func Verify_Chain(Last_block *Block)
Types ¶
type Block ¶
type Block struct { // data string MerkleTree *Node Nonce string Previous_block_address *Block Previous_Block_hash string Block_number int Block_hash string }
Block Chain
func Add_To_Blockchain ¶
type Blockchain ¶
func Create_Blockchain ¶
func Create_Blockchain() *Blockchain
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
////////////////////////////////////////////////////////////////// Merkel Tree
func Get_Random_Transactions ¶
func Get_Random_Transactions() *Node
func Get_Transactions ¶
func Get_Transactions() *Node
Click to show internal directories.
Click to hide internal directories.