reshare

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RefreshInfo

type RefreshInfo struct {
	DeviceNumber int
	Threshold    int // 2/n
	Total        int
	RoundNumber  int
	// contains filtered or unexported fields
}

func NewRefresh

func NewRefresh(deviceNumber, total int, devoteList [2]int, ShareI *big.Int, PublicKey *curves.ECPoint) *RefreshInfo

NewRefresh the process is consistent with dkg

func (*RefreshInfo) DKGStep1

func (info *RefreshInfo) DKGStep1() (map[int]*tss.Message, error)

DKGStep1

func (*RefreshInfo) DKGStep2

func (info *RefreshInfo) DKGStep2(msgs []*tss.Message) (map[int]*tss.Message, error)

DKGStep2 same as dkg step2

func (*RefreshInfo) DKGStep3

func (info *RefreshInfo) DKGStep3(msgs []*tss.Message) (*tss.KeyStep3Data, error)

DKGStep3 return new key share information except chaincode

func (*RefreshInfo) Ids

func (info *RefreshInfo) Ids() []int

Jump to

Keyboard shortcuts

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