Documentation
¶
Index ¶
Constants ¶
View Source
const NumHistoricalShards = 3
NumHistoricalShards specifies the number of historical shards allowed.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hyperdrive ¶
type Hyperdrive interface {
Sync(shardHash sig.Hash, commit block.Commit) bool
AcceptTick(t time.Time)
AcceptPropose(shardHash sig.Hash, proposed block.SignedPropose)
AcceptPreVote(shardHash sig.Hash, preVote block.SignedPreVote)
AcceptPreCommit(shardHash sig.Hash, preCommit block.SignedPreCommit)
BeginShard(shard, previousShard shard.Shard, head *block.Commit, pool tx.Pool)
EndShard(shardHash sig.Hash)
DropShard(shardHash sig.Hash)
}
Hyperdrive accepts blocks and ticks and sends relevant Transitions to the respective replica.
func New ¶
func New(signer sig.SignerVerifier, dispatcher replica.Dispatcher) Hyperdrive
New returns a Hyperdrive.
Directories
¶
| Path | Synopsis |
|---|---|
|
ecdsa
Package ecdsa provides Sign and Verify capabilities using ECDSA I picked ethereum-go's implementation of ECDSA instead of the built in go libraries since it provides both build in marshaling/unmarshaling for the signature and a way to recover the Public Key from the signature.
|
Package ecdsa provides Sign and Verify capabilities using ECDSA I picked ethereum-go's implementation of ECDSA instead of the built in go libraries since it provides both build in marshaling/unmarshaling for the signature and a way to recover the Public Key from the signature. |
|
Package state contains the interface TransitionBuffer and its implementation Note: TransitionBuffer is not thread safe `Dequeue` will return the most relevant `Proposed` transition for the given `Height`.
|
Package state contains the interface TransitionBuffer and its implementation Note: TransitionBuffer is not thread safe `Dequeue` will return the most relevant `Proposed` transition for the given `Height`. |
Click to show internal directories.
Click to hide internal directories.