package
0.0.0-20240904134818-08f901de4bfb
Repository: https://github.com/dharitrione/drt-chain-go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
go:generate protoc -I=.

# Functions

NewMultiShardCoordinator returns a new multiShardCoordinator and initializes the masks.
NewNodesSetup creates a new decoded nodes structure from json config file.
NewShuffledOutTrigger returns a new instance of shuffledOutTrigger.

# Variables

ErrCouldNotParseAddress signals that a given address could not be parsed.
ErrCouldNotParsePubKey signals that a given public key could not be parsed.
ErrInvalidMaximumNumberOfShards signals that an invalid maximum number of shards has been provided.
ErrMinNodesPerShardSmallerThanConsensusSize signals that an invalid min nodes per shard has been provided.
ErrNegativeOrZeroConsensusGroupSize signals that an invalid consensus group size has been provided.
ErrNilEndOfProcessingHandler signals that a nil end of processing handler has been provided.
ErrNilOwnPublicKey signals that a nil own public key has been provided.
ErrNilPubkeyConverter signals that a nil public key converter has been provided.
ErrNodesSizeSmallerThanMinNoOfNodes signals that there are not enough nodes defined in genesis file.
ErrNoPubKeys signals an error when public keys are missing.
ErrPublicKeyNotFoundInGenesis signals an error when the public key is not in genesis file.
ErrShardIdOutOfRange signals an error when shard id is out of range.

# Structs

InitialNode holds data from json.
NodesSetup hold data for decoded data from json file.
OneShardCoordinator creates a shard coordinator object.

# Interfaces

Coordinator defines what a shard state coordinator should hold.
EpochHandler defines what a component which handles current epoch should be able to do.
GenesisNodesSetupHandler returns the genesis nodes info.
PeerAccountListAndRatingHandler provides Rating Computation Capabilites for the Nodes Coordinator and ValidatorStatistics.