newpeer

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddShare

type AddShare struct {
	*message.MsgMain
	// contains filtered or unexported fields
}

func NewAddShare

func NewAddShare(peerManager types.PeerManager, pubkey *ecpointgrouplaw.ECPoint, threshold, newPeerRank uint32, listener types.StateChangedListener) *AddShare

func (*AddShare) GetResult

func (a *AddShare) GetResult() (*Result, error)

GetResult returns the final result: public key, share, bks (including self bk)

type Result

type Result struct {
	PartialPublicKeys map[string]*ecpointgrouplaw.ECPoint
	PublicKey         *ecpointgrouplaw.ECPoint
	Share             *big.Int
	Bks               map[string]*birkhoffinterpolation.BkParameter
}

Jump to

Keyboard shortcuts

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