Versions in this module Expand all Collapse all v1 v1.0.0 Apr 14, 2022 Changes in this version + var One = append([]byte{ ... }, make([]byte, 31)) + func C(msg []byte, r, groupKey *ristretto255.Element) ristretto255.Scalar + func Lambda(id peer.ID, peers []peer.ID) (*ristretto255.Scalar, error) + type Messages struct + NoncePairs map[peer.ID]NonceMsg + PartialSigs map[peer.ID]PartialSigMsg + func InitMessages(n int) *Messages + type Nonce struct + C *ristretto255.Element + N *ristretto255.Scalar + func (n *Nonce) Decode(buf []byte) error + func (n *Nonce) Encode() (buf []byte) + func (n *Nonce) New() (err error) + func (n *Nonce) Zero() + type NonceMsg struct + D ristretto255.Element + E ristretto255.Element + ID peer.ID + M []byte + func (n *NonceMsg) Decode(buf []byte) error + func (n NonceMsg) Encode() []byte + type NoncePairs map[peer.ID]NonceMsg + type PartialSigMsg struct + ID peer.ID + Z ristretto255.Scalar + func (p *PartialSigMsg) Decode(buf []byte) error + func (p PartialSigMsg) Encode() []byte + type PartialSigs map[peer.ID]PartialSigMsg + type Sign struct + C ristretto255.Scalar + D Nonce + E Nonce + ID peer.ID + Msg []byte + Peers []peer.ID + Rho ristretto255.Scalar + Ri map[peer.ID]ristretto255.Element + func InitSign(id peer.ID, peers []peer.ID, msg []byte) (*Sign, error) + func (s *Sign) Aggregate(resp PartialSigs) + func (s *Sign) GroupCommitment(np NoncePairs) + func (s *Sign) PartialSign(key *dkg.Keys) error + func (s *Sign) Preprocess() error + func (s Sign) NonceMsg() *NonceMsg + func (s Sign) PartialSig() *PartialSigMsg + func (s Sign) Valid(z ristretto255.Scalar, id peer.ID, share ristretto255.Element) bool + type Signature struct + R ristretto255.Element + Z ristretto255.Scalar + func (s *Signature) Decode(buf []byte) error + func (s Signature) Encode() []byte + func (s Signature) Verify(msg []byte, pubkey *ristretto255.Element) bool