Versions in this module Expand all Collapse all v1 v1.7.1 Mar 11, 2022 Changes in this version + func DerivePublicKey(curve elliptic.Curve, secretKey *big.Int) (*curves.EcPoint, error) + func NewDealerShares(curve elliptic.Curve, threshold, total uint32, ikm *big.Int) (*curves.EcPoint, map[uint32]*Share, error) + func NewSecret(curve elliptic.Curve) (*big.Int, error) + func PreparePublicShares(sharesMap map[uint32]*Share) (map[uint32]*PublicShare, error) + type DistributedKeyGenType struct + ProofParams map[uint32]*ProofParams + func (dkg DistributedKeyGenType) GetProofParams(id uint32) *ProofParams + func (dkg DistributedKeyGenType) IsTrustedDealer() bool + type KeyGenType interface + GetProofParams func(id uint32) *ProofParams + IsTrustedDealer func() bool + type ParticipantData struct + DecryptKey *paillier.SecretKey + EcdsaPublicKey *curves.EcPoint + EncryptKeys map[uint32]*paillier.PublicKey + Id uint32 + KeyGenType KeyGenType + PublicShares map[uint32]*PublicShare + SecretKeyShare *Share + func (pd *ParticipantData) UnmarshalJSON(bytes []byte) error + func (pd ParticipantData) MarshalJSON() ([]byte, error) + type ParticipantDataJson struct + DealerParams *ProofParams + DecryptKey *paillier.SecretKey + EcdsaPublicKey *curves.EcPoint + EncryptKeys map[uint32]*paillier.PublicKey + Id uint32 + ParticipantParams map[uint32]*ProofParams + PublicShares map[uint32]*PublicShare + SecretKeyShare *Share + type ProofParams struct + H1 *big.Int + H2 *big.Int + N *big.Int + func NewProofParams() (*ProofParams, error) + func NewProofParamsWithPrimes(p, q *big.Int) (*ProofParams, error) + type PublicShare struct + Point *curves.EcPoint + type Share struct + Point *curves.EcPoint + func (s *Share) UnmarshalJSON(bytes []byte) error + func (s Share) MarshalJSON() ([]byte, error) + type ShareJson struct + Identifier uint32 + Point *curves.EcPoint + Value *big.Int + type TrustedDealerKeyGenType struct + ProofParams *ProofParams + func (td TrustedDealerKeyGenType) GetProofParams(_ uint32) *ProofParams + func (td TrustedDealerKeyGenType) IsTrustedDealer() bool