Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AmountRequest ¶
type AmountRequest struct {
Address *string
}
func (*AmountRequest) IsInvalid ¶
func (amountRequest *AmountRequest) IsInvalid() bool
type AmountResponse ¶
type AmountResponse struct {
Amount uint64
}
type BlockResponse ¶
type BlockResponse struct { Timestamp int64 PreviousHash [32]byte Transactions []*TransactionResponse RegisteredAddresses []string }
type Neighbor ¶
type Neighbor interface { Ip() string Port() uint16 Target() string GetBlocks() (blockResponses []*BlockResponse, err error) SendTargets(request []TargetRequest) (err error) AddTransaction(request TransactionRequest) (err error) GetTransactions() (transactionResponses []TransactionResponse, err error) GetAmount(request AmountRequest) (amountResponse *AmountResponse, err error) Mine() (err error) StartMining() (err error) StopMining() error }
type TargetRequest ¶
Click to show internal directories.
Click to hide internal directories.