Documentation ¶
Index ¶
Constants ¶
const DefaultTimeout = time.Duration(1) * time.Minute
DefaultTimeout is the timeout used by default when unspecified in the config
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 Timeout time.Duration Reader io.Reader UserReaderOnly bool Clock clock.Clock }
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 that correctly finished running the DKG protocol. It may be a subset of the group given in the NewNodes field in the config. Indeed, not all members may have been online or have completed the protocol sucessfully. This group must be saved to be re-used later on in case of a renewal for the share. This method MUST only be called if the dkg has finished as signalled on the `WaitShare` channel. XXX Best to group that with the WaitShare channel.
func (*Handler) WaitError ¶
WaitError returns a channel over which any fatal error for the protocol is sent to.
type Share ¶
type Share = dkg.DistKeyShare
Share represents the private information that a node holds after a successful DKG. This information MUST stay private !