Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Committeer ¶
type Committeer interface {
GetCommittee() (keys.PublicKeys, error)
}
Committeer must provide side chain committee public keys.
type Designater ¶
type Designater interface { GetBlockCount() (uint32, error) GetDesignatedByRole(noderoles.Role, uint32) (keys.PublicKeys, error) }
Designater must provide main chain alphabet public keys.
type MainChainAlphabetFetcher ¶
type MainChainAlphabetFetcher struct {
// contains filtered or unexported fields
}
func NewMainChainAlphabetFetcher ¶
func NewMainChainAlphabetFetcher(designater Designater) *MainChainAlphabetFetcher
func (MainChainAlphabetFetcher) FetchAlphabet ¶
func (a MainChainAlphabetFetcher) FetchAlphabet() (keys.PublicKeys, error)
type SideChainAlphabetFetcher ¶
type SideChainAlphabetFetcher struct {
// contains filtered or unexported fields
}
func NewSideChainAlphabetFetcher ¶
func NewSideChainAlphabetFetcher(committeer Committeer) *SideChainAlphabetFetcher
func (SideChainAlphabetFetcher) FetchAlphabet ¶
func (a SideChainAlphabetFetcher) FetchAlphabet() (keys.PublicKeys, error)
Click to show internal directories.
Click to hide internal directories.