Documentation ¶
Overview ¶
Package frost is an implementation of the DKG part of https://eprint.iacr.org/2020/852.pdf
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DkgParticipant ¶
type DkgParticipant struct { Curve *curves.Curve Id uint32 VerificationKey curves.Point // contains filtered or unexported fields }
func NewDkgParticipant ¶
func (*DkgParticipant) Round1 ¶
func (dp *DkgParticipant) Round1(secret []byte) (*Round1Bcast, Round1P2PSend, error)
Round1 implements dkg round 1 of FROST
func (*DkgParticipant) Round2 ¶
func (dp *DkgParticipant) Round2(bcast map[uint32]*Round1Bcast, p2psend map[uint32]*sharing.ShamirShare) (*Round2Bcast, error)
Round2 implements dkg round 2 of FROST
type Round1Bcast ¶
type Round1Bcast struct { Verifiers *sharing.FeldmanVerifier Wi, Ci curves.Scalar }
Round1Bcast are values that are broadcast to all other participants after round1 completes
type Round1P2PSend ¶
type Round1P2PSend = map[uint32]*sharing.ShamirShare
Round1P2PSend are values that are P2PSend to all other participants after round1 completes
type Round1Result ¶ added in v1.5.4
type Round1Result struct { Broadcast *Round1Bcast P2P *sharing.ShamirShare }
func (*Round1Result) Decode ¶ added in v1.5.4
func (result *Round1Result) Decode(input []byte) error
func (*Round1Result) Encode ¶ added in v1.5.4
func (result *Round1Result) Encode() ([]byte, error)
type Round2Bcast ¶
Round2Bcast are values that are broadcast to all other participants after round2 completes
Click to show internal directories.
Click to hide internal directories.