morphchain

package
v0.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL