dkg

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: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnmarshalVerifiers

func UnmarshalVerifiers(curve elliptic.Curve, msg []*big.Int, threshold int) ([]*curves.ECPoint, error)

Types

type SetupInfo

type SetupInfo struct {
	DeviceNumber int // device id, start 1
	Threshold    int //  2/n, fixed 2
	Total        int // number of participants
	RoundNumber  int
	// contains filtered or unexported fields
}

func NewSetUp

func NewSetUp(deviceNumber, total int, curve elliptic.Curve) *SetupInfo

func (*SetupInfo) DKGStep1

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

DKGStep1 p2p send verifiers commitment

func (*SetupInfo) DKGStep2

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

DKGStep2 receive first step message and execute second step

func (*SetupInfo) DKGStep3

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

DKGStep3 receive second step message and execute dkg finish return key share information

func (*SetupInfo) Ids

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

Jump to

Keyboard shortcuts

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