Documentation ¶
Index ¶
Constants ¶
const DefaultTimeout = time.Duration(1) * time.Minute
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Suite Suite Key *key.Pair NewNodes *key.Group OldNodes *key.Group Threshold int // XXX currently not used Timeout time.Duration }
Config holds all necessary information to run a dkg protocol. This config is transformed to be passed down to the kyber dkg library.
type Handler ¶
Handler is the stateful struct that runs a DKG with the peers
func NewHandler ¶
NewHandler returns a fresh dkg handler using this private key.
func (*Handler) QualifiedGroup ¶
QualifiedGroup returns the group of qualified participants,i.e. the list of participants that successfully finished the DKG round without any blaming from any other participants. This group must be saved to be re-used later on in case of a renewal for the share. TODO For the moment it's only taking the new set of nodes completely. Once we allow for failing nodes during DKG, we must take the qualified group.
func (*Handler) WaitError ¶
WaitError returns a channel over which any fatal error for the protocol is sent to.
type Network ¶
Network is used by the Handler to send a DKG protocol packet over the network. XXX Not really needed, should use the net/protobuf interface instead