Versions in this module Expand all Collapse all v3 v3.1.1 Jul 17, 2019 v3.1.0 Jul 17, 2019 Changes in this version + const StatusApproval + const StatusComplaint + var ErrNoDealBeforeResponse = errors.New("verifier: need to receive deal before response") + func MinimumT(n int) int + func RecoverSecret(suite Suite, deals []*Deal, n, t int) (kyber.Scalar, error) + type Aggregator struct + func NewEmptyAggregator(suite Suite, verifiers []kyber.Point) *Aggregator + func (a *Aggregator) DealCertified() bool + func (a *Aggregator) MissingResponses() []int + func (a *Aggregator) ProcessResponse(r *Response) error + func (a *Aggregator) Responses() map[uint32]*Response + func (a *Aggregator) SetThreshold(t int) + func (a *Aggregator) VerifyDeal(d *Deal, inclusion bool) error + func (z *Aggregator) DecodeMsg(dc *msgp.Reader) (err error) + func (z *Aggregator) UnmarshalMsg(bts []byte) (o []byte, err error) + func (z Aggregator) EncodeMsg(en *msgp.Writer) (err error) + func (z Aggregator) MarshalMsg(b []byte) (o []byte, err error) + func (z Aggregator) Msgsize() (s int) + type Deal struct + Commitments []kyber.Point + SecShare *share.PriShare + SessionID []byte + T uint32 + func (z *Deal) DecodeMsg(dc *msgp.Reader) (err error) + func (z *Deal) EncodeMsg(en *msgp.Writer) (err error) + func (z *Deal) MarshalMsg(b []byte) (o []byte, err error) + func (z *Deal) Msgsize() (s int) + func (z *Deal) UnmarshalMsg(bts []byte) (o []byte, err error) + type Dealer struct + func NewDealer(suite Suite, longterm, secret kyber.Scalar, verifiers []kyber.Point, t int) (*Dealer, error) + func (d *Dealer) Commits() []kyber.Point + func (d *Dealer) EncryptedDeal(i int) (*EncryptedDeal, error) + func (d *Dealer) EncryptedDeals() ([]*EncryptedDeal, error) + func (d *Dealer) Key() (secret kyber.Scalar, public kyber.Point) + func (d *Dealer) PlaintextDeal(i int) (*Deal, error) + func (d *Dealer) PrivatePoly() *share.PriPoly + func (d *Dealer) ProcessResponse(r *Response) (*Justification, error) + func (d *Dealer) SecretCommit() kyber.Point + func (d *Dealer) SessionID() []byte + func (d *Dealer) SetTimeout() + func (z *Dealer) DecodeMsg(dc *msgp.Reader) (err error) + func (z *Dealer) EncodeMsg(en *msgp.Writer) (err error) + func (z *Dealer) MarshalMsg(b []byte) (o []byte, err error) + func (z *Dealer) Msgsize() (s int) + func (z *Dealer) UnmarshalMsg(bts []byte) (o []byte, err error) + type EncryptedDeal struct + Cipher []byte + DHKey []byte + Nonce []byte + Signature []byte + func (d *EncryptedDeal) String() string + func (d *EncryptedDeal) TerminateString() string + func (z *EncryptedDeal) DecodeMsg(dc *msgp.Reader) (err error) + func (z *EncryptedDeal) EncodeMsg(en *msgp.Writer) (err error) + func (z *EncryptedDeal) MarshalMsg(b []byte) (o []byte, err error) + func (z *EncryptedDeal) Msgsize() (s int) + func (z *EncryptedDeal) UnmarshalMsg(bts []byte) (o []byte, err error) + type Justification struct + Deal *Deal + Index uint32 + SessionID []byte + Signature []byte + func (j *Justification) Hash(s Suite) []byte + func (z *Justification) DecodeMsg(dc *msgp.Reader) (err error) + func (z *Justification) EncodeMsg(en *msgp.Writer) (err error) + func (z *Justification) MarshalMsg(b []byte) (o []byte, err error) + func (z *Justification) Msgsize() (s int) + func (z *Justification) UnmarshalMsg(bts []byte) (o []byte, err error) + type Response struct + Index uint32 + SessionID []byte + Signature []byte + Status bool + func (r *Response) Hash(s Suite) []byte + func (z *Response) DecodeMsg(dc *msgp.Reader) (err error) + func (z *Response) EncodeMsg(en *msgp.Writer) (err error) + func (z *Response) MarshalMsg(b []byte) (o []byte, err error) + func (z *Response) Msgsize() (s int) + func (z *Response) UnmarshalMsg(bts []byte) (o []byte, err error) + type Suite interface + type Verifier struct + func NewVerifier(suite Suite, longterm kyber.Scalar, dealerKey kyber.Point, ...) (*Verifier, error) + func (v *Verifier) Commits() []kyber.Point + func (v *Verifier) Deal() *Deal + func (v *Verifier) Index() int + func (v *Verifier) Key() (kyber.Scalar, kyber.Point) + func (v *Verifier) ProcessEncryptedDeal(e *EncryptedDeal) (*Response, error) + func (v *Verifier) ProcessJustification(dr *Justification) error + func (v *Verifier) ProcessResponse(resp *Response) error + func (v *Verifier) SessionID() []byte + func (v *Verifier) SetTimeout() + func (v *Verifier) UnsafeSetResponseDKG(idx uint32, approval bool) + func (z *Verifier) DecodeMsg(dc *msgp.Reader) (err error) + func (z *Verifier) EncodeMsg(en *msgp.Writer) (err error) + func (z *Verifier) MarshalMsg(b []byte) (o []byte, err error) + func (z *Verifier) Msgsize() (s int) + func (z *Verifier) UnmarshalMsg(bts []byte) (o []byte, err error)