Documentation ¶
Index ¶
- Constants
- func MakeSetupMessage(ctx context.Context, key kyber.Scalar, nonce uint64) []byte
- type Board
- func (t *Board) IncomingDeal() <-chan dkg.DealBundle
- func (t *Board) IncomingJustification() <-chan dkg.JustificationBundle
- func (t *Board) IncomingResponse() <-chan dkg.ResponseBundle
- func (t *Board) PushDeals(db *dkg.DealBundle)
- func (t *Board) PushJustifications(jb *dkg.JustificationBundle)
- func (t *Board) PushResponses(rb *dkg.ResponseBundle)
- type Configuration
- type Decoder
- type Encoder
- type Message
- type Node
- func (node *Node) GetKey() kyber.Scalar
- func (node *Node) GetPoly() []kyber.Point
- func (node *Node) GetShare() *share.PriShare
- func (node *Node) GetSigners() []dkg.Node
- func (node *Node) NewBoard(ctx context.Context, nonce uint64) *Board
- func (node *Node) NextPhase() chan dkg.Phase
- func (node *Node) Run(ctx context.Context) error
- func (node *Node) Threshold() int
- type SetupBundle
Constants ¶
View Source
const ( MessageActionSetup = 7000 MessageActionDKGDeal = 7001 MessageActionDKGResponse = 7002 MessageActionDKGJustify = 7003 MessageSetupPeriodSeconds = 300 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Board ¶
type Board struct {
// contains filtered or unexported fields
}
func (*Board) IncomingDeal ¶
func (t *Board) IncomingDeal() <-chan dkg.DealBundle
func (*Board) IncomingJustification ¶
func (t *Board) IncomingJustification() <-chan dkg.JustificationBundle
func (*Board) IncomingResponse ¶
func (t *Board) IncomingResponse() <-chan dkg.ResponseBundle
func (*Board) PushDeals ¶
func (t *Board) PushDeals(db *dkg.DealBundle)
func (*Board) PushJustifications ¶
func (t *Board) PushJustifications(jb *dkg.JustificationBundle)
func (*Board) PushResponses ¶
func (t *Board) PushResponses(rb *dkg.ResponseBundle)
type Configuration ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
func NewDecoder ¶
func (*Decoder) ReadUint32 ¶
func (*Decoder) ReadUint64 ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func NewEncoder() *Encoder
func (*Encoder) WriteFixedBytes ¶
func (*Encoder) WriteUint32 ¶
func (*Encoder) WriteUint64 ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func NewNode ¶
func NewNode(ctx context.Context, cancel context.CancelFunc, store store.Storage, messenger messenger.Messenger, conf *Configuration) *Node
func (*Node) GetSigners ¶
type SetupBundle ¶
Click to show internal directories.
Click to hide internal directories.