Documentation ¶
Index ¶
- type BLSKeyring
- type DKG
- func (d *DKG) Equals(other *DKG) error
- func (d *DKG) GetBLSKeyring() (*BLSKeyring, error)
- func (d *DKG) GetCommits() []kyber.Point
- func (d *DKG) GetDeals() (map[int]*dkg.Deal, error)
- func (d *DKG) GetDistKeyShare() (*dkg.DistKeyShare, error)
- func (d *DKG) GetDistributedPublicKey() (kyber.Point, error)
- func (d *DKG) GetPKByIndex(index int) kyber.Point
- func (d *DKG) GetParticipantByIndex(index int) string
- func (d *DKG) GetPubKey() kyber.Point
- func (d *DKG) GetPubKeyByParticipant(participant string) (kyber.Point, error)
- func (d *DKG) GetSecKey() kyber.Scalar
- func (d *DKG) InitDKGInstance(seed []byte) (err error)
- func (d *DKG) ProcessDeals() ([]*dkg.Response, error)
- func (d *DKG) ProcessResponses() error
- func (d *DKG) StoreCommits(participant string, commits []kyber.Point)
- func (d *DKG) StoreDeal(participant string, deal *dkg.Deal)
- func (d *DKG) StorePubKey(participant string, pid int, pk kyber.Point) bool
- func (d *DKG) StoreResponses(participant string, responses []*dkg.Response)
- type ExportedSignatureEntity
- type ExportedSignatures
- type PK2Participant
- type PKStore
- func (s *PKStore) Add(newPk *PK2Participant) bool
- func (s PKStore) GetPKByIndex(index int) kyber.Point
- func (s PKStore) GetPKByParticipant(p string) (kyber.Point, error)
- func (s PKStore) GetPKs() []kyber.Point
- func (s PKStore) GetParticipantByIndex(index int) string
- func (s PKStore) Len() int
- func (s PKStore) Less(i, j int) bool
- func (s PKStore) Swap(i, j int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BLSKeyring ¶
BLSKeyring contains private and public part of reconstructed DKG master key
func LoadBLSKeyringFromBytes ¶
func LoadBLSKeyringFromBytes(suite vss.Suite, data []byte) (*BLSKeyring, error)
LoadBLSKeyringFromBytes decode the form generated by Bytes()
func LoadPubPolyBLSKeyringFromBytes ¶
func LoadPubPolyBLSKeyringFromBytes(suite vss.Suite, data []byte) (*BLSKeyring, error)
LoadPubPolyBLSKeyringFromBytes decode the form generated by PubPolyBytes()
func (*BLSKeyring) Bytes ¶
func (b *BLSKeyring) Bytes() ([]byte, error)
Bytes encodes a BLSKeyring into a binary form and returns the result.
func (*BLSKeyring) PubPolyBytes ¶
func (b *BLSKeyring) PubPolyBytes() ([]byte, error)
PubPolyBytes encodes a BLSKeyring's PubPoly into a binary form and returns the result.
type DKG ¶
type DKG struct { sync.Mutex ParticipantID int N int Threshold int // contains filtered or unexported fields }
DKG is the type that maintains all active DKG instances and data.
func (*DKG) GetBLSKeyring ¶
func (d *DKG) GetBLSKeyring() (*BLSKeyring, error)
func (*DKG) GetCommits ¶
func (*DKG) GetDistKeyShare ¶
func (d *DKG) GetDistKeyShare() (*dkg.DistKeyShare, error)
func (*DKG) GetParticipantByIndex ¶
func (*DKG) GetPubKeyByParticipant ¶
func (*DKG) InitDKGInstance ¶
func (*DKG) ProcessResponses ¶
func (*DKG) StorePubKey ¶
type ExportedSignatureEntity ¶
type ExportedSignatures ¶
type ExportedSignatures map[string]ExportedSignatureEntity
type PK2Participant ¶
type PKStore ¶
type PKStore []*PK2Participant
func (*PKStore) Add ¶
func (s *PKStore) Add(newPk *PK2Participant) bool
func (PKStore) GetPKByParticipant ¶
func (PKStore) GetParticipantByIndex ¶
Click to show internal directories.
Click to hide internal directories.