sign

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ed25519Sign

type Ed25519Sign struct {
	DeviceNumber int
	Threshold    int

	PublicKey   *edwards.PublicKey
	RoundNumber int

	CommitmentMap map[int]commitment.Commitment
	// contains filtered or unexported fields
}

func NewEd25519Sign

func NewEd25519Sign(deviceNumber, threshold int, partList []int, ShareI *big.Int, PublicKey *edwards.PublicKey, message string) *Ed25519Sign

NewEd25519Sign

func (*Ed25519Sign) SignStep1

func (ed25519 *Ed25519Sign) SignStep1() (map[int]*tss.Message, error)

SignStep1 p2p send Ri commitment

func (*Ed25519Sign) SignStep2

func (ed25519 *Ed25519Sign) SignStep2(msgs []*tss.Message) (map[int]*tss.Message, error)

SignStep2

func (*Ed25519Sign) SignStep3

func (ed25519 *Ed25519Sign) SignStep3(msgs []*tss.Message) (*big.Int, *big.Int, error)

SignStep3 calculate R, si = ri + h * xi

type Step1Data

type Step1Data struct {
	C commitment.Commitment
}

type Step2Data

type Step2Data struct {
	Witness commitment.Witness
	Proof   *schnorr.Proof
}

Jump to

Keyboard shortcuts

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