Documentation
¶
Index ¶
- type ECDSAKeyshareStorer
- type Keygen
- func (k *Keygen) Ready(readyPeers []peer.ID, excludedPeers []peer.ID) (bool, error)
- func (k *Keygen) Retryable() bool
- func (k *Keygen) Run(ctx context.Context, coordinator bool, resultChn chan interface{}, ...) error
- func (k *Keygen) StartParams(readyPeers []peer.ID) []byte
- func (k *Keygen) Stop()
- func (k *Keygen) ValidCoordinators() []peer.ID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ECDSAKeyshareStorer ¶
type ECDSAKeyshareStorer interface {
}
type Keygen ¶
func NewKeygen ¶
func NewKeygen( sessionID string, threshold int, host host.Host, comm comm.Communication, storer ECDSAKeyshareStorer, ) *Keygen
func (*Keygen) Ready ¶
Ready returns true if all parties from the peerstore are ready. Error is returned if excluded peers exist as we need all peers to participate in keygen process.
func (*Keygen) Run ¶
func (k *Keygen) Run( ctx context.Context, coordinator bool, resultChn chan interface{}, params []byte, ) error
Run initializes the keygen party and runs the keygen tss process.
Should be run only after all the participating parties are ready.
func (*Keygen) Stop ¶
func (k *Keygen) Stop()
Stop ends all subscriptions created when starting the tss process and unlocks keyshare.
func (*Keygen) ValidCoordinators ¶
ValidCoordinators returns all peers in peerstore
Click to show internal directories.
Click to hide internal directories.