Documentation
¶
Index ¶
- Variables
- type Block
- type BlockData
- type BlockIterator
- type BlockState
- type BlockStorage
- type Blockchain
- type Blocks
- type Broadcaster
- type Hash
- type Hashes
- type Height
- type Hyperdrive
- type Message
- type Messages
- type Observer
- type Options
- type Process
- type ProcessState
- type ProcessStorage
- type Replica
- type Replicas
- type Round
- type Shard
- type Shards
- type Signatories
- type Signatory
- type Signature
- type Signatures
- type Timestamp
- type Validator
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NewSignatory = id.NewSignatory StandardBlockKind = block.Standard RebaseBlockKind = block.Rebase BaseBlockKind = block.Base NewBlock = block.New NewBlockHeader = block.NewHeader )
Re-export variables.
Functions ¶
This section is empty.
Types ¶
type Hyperdrive ¶
type Hyperdrive interface {
Start()
Rebase(sigs Signatories)
HandleMessage(message Message)
}
Hyperdrive manages multiple `Replicas` from different `Shards`.
func New ¶
func New(options Options, pStorage ProcessStorage, blockStorage BlockStorage, blockIterator BlockIterator, validator Validator, observer Observer, broadcaster Broadcaster, shards Shards, privKey ecdsa.PrivateKey) Hyperdrive
New Hyperdrive.
Click to show internal directories.
Click to hide internal directories.