Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BalanceResponse ¶
type BlockUnHashed ¶
type BlockUnHashed struct { Index uint32 Transactions []Transaction Validator string PreviousHash string Capacity uint32 }
type NeighboorInformationMessage ¶
type NeighboorInformationMessage struct { Info *NeighboorNode Peers map[uint32]*NeighboorNode Blockchain []Block }
type NeighboorNode ¶
type Neighboors ¶
type Neighboors struct { DSNodes map[uint32]*NeighboorNode `json:"node"` Mu sync.Mutex `json:"-"` }
type Node ¶
type Node struct { // Ip net.IP maybe no need for ip // Port uint32 maybe no need for port Id uint32 `json:"id"` BootStrap bool `json:"bootstrap"` Nonce uint32 `json:"nonce"` Stake float64 `json:"stake"` PublicKey string `json:"public_key"` Balance float64 `json:"balance"` Validator string `json:"validator"` BlockChain []Block `json:"blockchain"` Mu sync.Mutex `json:"-"` }
type Transaction ¶
type Transaction struct { SenderAddress string `json:"sender_address"` RecipientAddress string `json:"recipient_address"` TypeOfTransaction string `json:"type_of_transaction"` Amount float64 `json:"amount,omitempty"` Message string `json:"message,omitempty"` Fee float64 `json:"fee"` Nonce uint32 `json:"nonce"` TransactionId string `json:"transaction_id"` Signature []byte `json:"signature"` }
type TransactionRequest ¶
type TransactionResponse ¶
Click to show internal directories.
Click to hide internal directories.