dkg

package
v0.0.0-...-35ce414 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alice

type Alice struct {
	// contains filtered or unexported fields
}

func NewAlice

func NewAlice(curve *curves.Curve) *Alice

func (*Alice) Output

func (alice *Alice) Output() *Output

func (*Alice) Step1

func (alice *Alice) Step1() (schnorr.Commitment, error)

func (*Alice) Step3

func (alice *Alice) Step3(proof *schnorr.Proof) (*schnorr.Proof, error)

type Bob

type Bob struct {
	// contains filtered or unexported fields
}

func NewBob

func NewBob(curve *curves.Curve) *Bob

func (*Bob) Output

func (bob *Bob) Output() *Output

func (*Bob) Step2

func (bob *Bob) Step2(commitment schnorr.Commitment) (*schnorr.Proof, error)

func (*Bob) Step4

func (bob *Bob) Step4(proof *schnorr.Proof) error

type Output

type Output struct {
	Sk      curves.Scalar
	Pk      curves.Point
	PkPeer  curves.Point
	PkJoint curves.Point
}

Jump to

Keyboard shortcuts

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