resharing

package
v0.0.0-...-f9c6c1d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resharing

type Resharing struct {
	common.BaseTss
	// contains filtered or unexported fields
}

func NewResharing

func NewResharing(host host.Host, comm p2p.Communication, storer SaveDataStorer, newThreshold int) *Resharing

func (*Resharing) Initiate

func (rs *Resharing) Initiate() error

Initiate initiates a resharing TSS process.

func (*Resharing) Start

func (rs *Resharing) Start() error

Start starts a resharing TSS process. Old parameters and read from keyshare and new resharing parameters and read from config.

func (*Resharing) WaitForStart

func (rs *Resharing) WaitForStart()

WaitForStart waits for resharing start message and starts TSS process.

type SaveDataStorer

type SaveDataStorer interface {
	GetSaveData() (storage.Keyshare, error)
	SetSaveData(saveData storage.Keyshare) error
	LockKeyshare()
	UnlockKeyshare()
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL