Documentation ¶
Index ¶
- type Coordinator
- func (d *Coordinator) ProcessPacket(packet api.SidecarDKGPacket) error
- func (d *Coordinator) RunDKG(identities []crypto.Identity, sessionID []byte, keypair crypto.Keypair) (*Output, error)
- func (d *Coordinator) RunReshare(identities []crypto.Identity, sessionID []byte, keypair crypto.Keypair, ...) (*Output, error)
- type DKGBoard
- func (d *DKGBoard) IncomingDeal() <-chan dkg.DealBundle
- func (d *DKGBoard) IncomingJustification() <-chan dkg.JustificationBundle
- func (d *DKGBoard) IncomingResponse() <-chan dkg.ResponseBundle
- func (d *DKGBoard) PushDeals(bundle *dkg.DealBundle)
- func (d *DKGBoard) PushJustifications(bundle *dkg.JustificationBundle)
- func (d *DKGBoard) PushResponses(bundle *dkg.ResponseBundle)
- type DistPublic
- type FileStore
- type GroupFile
- type GroupFiles
- type Output
- type Share
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Coordinator ¶
type Coordinator struct {
// contains filtered or unexported fields
}
func NewDKGCoordinator ¶
func NewDKGCoordinator(publicURL string, scheme crypto.ThresholdScheme) *Coordinator
func (*Coordinator) ProcessPacket ¶
func (d *Coordinator) ProcessPacket(packet api.SidecarDKGPacket) error
type DKGBoard ¶
type DKGBoard struct {
// contains filtered or unexported fields
}
func NewDKGBoard ¶
func (*DKGBoard) IncomingDeal ¶
func (d *DKGBoard) IncomingDeal() <-chan dkg.DealBundle
func (*DKGBoard) IncomingJustification ¶
func (d *DKGBoard) IncomingJustification() <-chan dkg.JustificationBundle
func (*DKGBoard) IncomingResponse ¶
func (d *DKGBoard) IncomingResponse() <-chan dkg.ResponseBundle
func (*DKGBoard) PushDeals ¶
func (d *DKGBoard) PushDeals(bundle *dkg.DealBundle)
func (*DKGBoard) PushJustifications ¶
func (d *DKGBoard) PushJustifications(bundle *dkg.JustificationBundle)
func (*DKGBoard) PushResponses ¶
func (d *DKGBoard) PushResponses(bundle *dkg.ResponseBundle)
type DistPublic ¶
type FileStore ¶
type FileStore struct {
// contains filtered or unexported fields
}
func NewFileStore ¶
func (*FileStore) Load ¶
func (f *FileStore) Load(sessionID string) (GroupFiles, error)
Load loads a set of group files associated with a given sessionID if none exist, it returns an empty `GroupFiles` object
func (*FileStore) LoadSingle ¶
LoadSingle loads a group file given an encryptedShareHash in some scenarios, we can complete a reshare and store a share, though someone in the wider group had errors; in this case, the caller will re-run the reshare, and tell use which share to use by passing the hash of the encrypted share
type GroupFile ¶
type GroupFiles ¶
type Share ¶
type Share struct {}
Share represents the private information that a node holds after a successful DKG. This information MUST stay private !
func (*Share) PrivateShare ¶
PrivateShare returns the private share used to produce a partial signature
func (*Share) PubPoly ¶
PubPoly returns the public polynomial that can be used to verify any individual partial signature
func (*Share) Public ¶
func (s *Share) Public() DistPublic
Public returns the distributed public key associated with the distributed key share