Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MsgVerification ¶
type PartitionConfiguration ¶
type PartitionConfiguration interface {
GetInfo(id protocol.SystemIdentifier) (*genesis.SystemDescriptionRecord, PartitionTrustBase, error)
}
type PartitionInfo ¶
type PartitionInfo struct { // partition system description record, SystemDescription *genesis.SystemDescriptionRecord // registered nodes and their public key's Verifier PartitionTrustBase }
type PartitionStore ¶
type PartitionStore struct {
// contains filtered or unexported fields
}
PartitionStore stores partition related information. key of the map is system identifier.
func NewPartitionStoreFromGenesis ¶
func NewPartitionStoreFromGenesis(partitions []*genesis.GenesisPartitionRecord) (*PartitionStore, error)
NewPartitionStoreFromGenesis creates a new partition store from root genesis.
func (*PartitionStore) GetInfo ¶
func (ps *PartitionStore) GetInfo(id p.SystemIdentifier) (*genesis.SystemDescriptionRecord, PartitionTrustBase, error)
type PartitionTrustBase ¶
type PartitionTrustBase interface { GetQuorum() uint64 GetTotalNodes() uint64 Verify(nodeId string, req MsgVerification) error }
func NewPartitionTrustBase ¶
func NewPartitionTrustBase(tb map[string]crypto.Verifier) PartitionTrustBase
Click to show internal directories.
Click to hide internal directories.