Documentation
¶
Index ¶
- type Resharing
- func (r *Resharing) Ready(readyPeers []peer.ID, excludedPeers []peer.ID) (bool, error)
- func (r *Resharing) Retryable() bool
- func (r *Resharing) Run(ctx context.Context, coordinator bool, resultChn chan interface{}, ...) error
- func (r *Resharing) StartParams(readyPeers []peer.ID) []byte
- func (r *Resharing) Stop()
- func (r *Resharing) ValidCoordinators() []peer.ID
- type SaveDataStorer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resharing ¶
func NewResharing ¶
func NewResharing( sessionID string, threshold int, host host.Host, comm comm.Communication, storer SaveDataStorer, ) *Resharing
func (*Resharing) Run ¶
func (r *Resharing) Run( ctx context.Context, coordinator bool, resultChn chan interface{}, params []byte, ) error
Run initializes the signing party and runs the resharing tss process. Params contains peer subset that leaders sends with start message.
func (*Resharing) StartParams ¶
StartParams returns threshold and peer subset from the old key to share with new parties.
func (*Resharing) Stop ¶
func (r *Resharing) Stop()
Stop ends all subscriptions created when starting the tss process and unlocks keyshare.
func (*Resharing) ValidCoordinators ¶
ValidCoordinators returns only peers that have a valid keyshare from the previous resharing inside host peerstore
type SaveDataStorer ¶
type SaveDataStorer interface {
}
Click to show internal directories.
Click to hide internal directories.