Documentation ¶
Index ¶
- func WriteProposalFile(filepath string, proposal ProposalFile) error
- type LocalNode
- func (l *LocalNode) AcceptReshare() error
- func (l *LocalNode) ChainInfo(_ string) bool
- func (l *LocalNode) CtrlAddr() string
- func (l *LocalNode) ExecuteLeaderDKG() error
- func (l *LocalNode) ExecuteLeaderReshare() error
- func (l *LocalNode) GetBeacon(_ string, round uint64) (ret *drand.PublicRandResponse, cmd string)
- func (l *LocalNode) GetGroup() *key.Group
- func (l *LocalNode) Identity() (*pdkg.Participant, error)
- func (l *LocalNode) Index() int
- func (l *LocalNode) JoinDKG() error
- func (l *LocalNode) JoinReshare(oldGroup key.Group) error
- func (l *LocalNode) Ping() bool
- func (l *LocalNode) PrintLog()
- func (l *LocalNode) PrivateAddr() string
- func (l *LocalNode) PublicAddr() string
- func (l *LocalNode) Start(dbEngineType chain.StorageType, pgDSN func() string, memDBSize int) error
- func (l *LocalNode) StartLeaderDKG(thr int, catchupPeriod int, joiners []*pdkg.Participant) error
- func (l *LocalNode) StartLeaderReshare(thr int, catchupPeriod int, joiners []*pdkg.Participant, ...) error
- func (l *LocalNode) Stop()
- func (l *LocalNode) WaitDKGComplete(epoch uint32, timeout time.Duration) (*key.Group, error)
- func (l *LocalNode) WritePublic(p string)
- type Node
- type NodeProc
- func (n *NodeProc) AcceptReshare() error
- func (n *NodeProc) ChainInfo(_ string) bool
- func (n *NodeProc) CtrlAddr() string
- func (n *NodeProc) ExecuteLeaderDKG() error
- func (n *NodeProc) ExecuteLeaderReshare() error
- func (n *NodeProc) GetBeacon(groupPath string, round uint64) (*drand.PublicRandResponse, string)
- func (n *NodeProc) GetGroup() *key.Group
- func (n *NodeProc) Identity() (*pdkg.Participant, error)
- func (n *NodeProc) Index() int
- func (n *NodeProc) JoinDKG() error
- func (n *NodeProc) JoinReshare(oldGroup key.Group) error
- func (n *NodeProc) Ping() bool
- func (n *NodeProc) PrintLog()
- func (n *NodeProc) PrivateAddr() string
- func (n *NodeProc) PublicAddr() string
- func (n *NodeProc) Start(dbEngineType chain.StorageType, pgDSN func() string, memDBSize int) error
- func (n *NodeProc) StartLeaderDKG(thr int, _ int, joiners []*pdkg.Participant) error
- func (n *NodeProc) StartLeaderReshare(thr int, catchupPeriod int, joiners []*pdkg.Participant, ...) error
- func (n *NodeProc) Stop()
- func (n *NodeProc) UpdateBinary(binary string, isCandidate bool)
- func (n *NodeProc) WaitDKGComplete(epoch uint32, timeout time.Duration) (*key.Group, error)
- func (n *NodeProc) WritePublic(path string)
- type ProposalFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteProposalFile ¶
func WriteProposalFile(filepath string, proposal ProposalFile) error
Types ¶
type LocalNode ¶
type LocalNode struct {
// contains filtered or unexported fields
}
LocalNode ...
func (*LocalNode) AcceptReshare ¶
func (*LocalNode) ExecuteLeaderDKG ¶
func (*LocalNode) ExecuteLeaderReshare ¶
func (*LocalNode) PrivateAddr ¶
func (*LocalNode) PublicAddr ¶
func (*LocalNode) StartLeaderDKG ¶
func (*LocalNode) StartLeaderReshare ¶
func (l *LocalNode) StartLeaderReshare(thr int, catchupPeriod int, joiners []*pdkg.Participant, remainers []*pdkg.Participant, leavers []*pdkg.Participant) error
func (*LocalNode) WaitDKGComplete ¶
func (*LocalNode) WritePublic ¶
type Node ¶
type Node interface { Start(dbEngineType chain.StorageType, pgDSN func() string, memDBSize int) error PrivateAddr() string CtrlAddr() string PublicAddr() string Index() int StartLeaderDKG(thr int, catchupPeriod int, joiners []*pdkg.Participant) error ExecuteLeaderDKG() error JoinDKG() error WaitDKGComplete(epoch uint32, timeout time.Duration) (*key.Group, error) GetGroup() *key.Group ChainInfo(group string) bool Ping() bool GetBeacon(groupPath string, round uint64) (*drand.PublicRandResponse, string) WritePublic(path string) Identity() (*pdkg.Participant, error) Stop() PrintLog() }
type NodeProc ¶
type NodeProc struct {
// contains filtered or unexported fields
}
func (*NodeProc) AcceptReshare ¶
func (*NodeProc) ExecuteLeaderDKG ¶
func (*NodeProc) ExecuteLeaderReshare ¶
func (*NodeProc) PrivateAddr ¶
func (*NodeProc) PublicAddr ¶
func (*NodeProc) StartLeaderDKG ¶
func (*NodeProc) StartLeaderReshare ¶
func (n *NodeProc) StartLeaderReshare(thr int, catchupPeriod int, joiners []*pdkg.Participant, remainers []*pdkg.Participant, leavers []*pdkg.Participant) error
func (*NodeProc) UpdateBinary ¶
UpdateBinary updates the binary this node uses for control, to e.g. simulate an upgrade
func (*NodeProc) WaitDKGComplete ¶
func (*NodeProc) WritePublic ¶
type ProposalFile ¶
type ProposalFile struct { Joining []*drand.Participant Leaving []*drand.Participant Remaining []*drand.Participant }
Click to show internal directories.
Click to hide internal directories.