protocol

package
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2022 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blockchain

type Blockchain interface {
	Verify(timestamp int64)
	Blocks() []*network.BlockResponse
	CalculateTotalAmount(currentTimestamp int64, blockchainAddress string) uint64
	AddBlock(timestamp int64, transactions []*network.TransactionResponse, registeredAddresses []string)
	Copy() Blockchain
	IsEmpty() bool
}

type Registry

type Registry interface {
	IsRegistered(address string) (bool, error)
}

type TransactionsPool

type TransactionsPool interface {
	AddTransaction(transactionRequest *network.TransactionRequest, neighbors []network.Neighbor)
	Transactions() []*network.TransactionResponse
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL