Versions in this module Expand all Collapse all v1 v1.7.1 Mar 11, 2022 Changes in this version + type CdlProof struct + func (cdlp *CdlProof) UnmarshalJSON(bytes []byte) error + func (cdlp CdlProof) MarshalJSON() ([]byte, error) + func (p CdlProof) Verify(cv *CdlVerifyParams) error + type CdlProofParams struct + Curve elliptic.Curve + H1 *big.Int + H2 *big.Int + N *big.Int + Pi *big.Int + Qi *big.Int + ScalarX *big.Int + func (p CdlProofParams) Prove() (*CdlProof, error) + type CdlVerifyParams struct + Curve elliptic.Curve + H1 *big.Int + H2 *big.Int + N *big.Int + type PdlProof struct + func (p PdlProof) Verify(pv *PdlVerifyParams) error + func (pdlp *PdlProof) UnmarshalJSON(bytes []byte) error + func (pdlp PdlProof) MarshalJSON() ([]byte, error) + type PdlProofParams struct + C *big.Int + Curve elliptic.Curve + DealerParams *dealer.ProofParams + Pk *paillier.PublicKey + PointR *curves.EcPoint + PointX *curves.EcPoint + ScalarR *big.Int + ScalarX *big.Int + func (p PdlProofParams) Prove() (*PdlProof, error) + type PdlVerifyParams struct + C *big.Int + Curve elliptic.Curve + DealerParams *dealer.ProofParams + Pk *paillier.PublicKey + PointR *curves.EcPoint + PointX *curves.EcPoint + type Proof1Params struct + A *big.Int + C *big.Int + Curve elliptic.Curve + DealerParams *dealer.ProofParams + Pk *paillier.PublicKey + R *big.Int + func (pp Proof1Params) Prove() (*Range1Proof, error) + type Range1Proof struct + func (pi Range1Proof) Verify(pp *Proof1Params) error + func (r *Range1Proof) UnmarshalJSON(bytes []byte) error + func (r Range1Proof) MarshalJSON() ([]byte, error) + type Range2Proof struct + func (pi Range2Proof) Verify(pp *verifyProof2Params) error + func (pi Range2Proof) VerifyWc(pp *verifyProof2Params) error + func (rP2 *Range2Proof) UnmarshalJSON(bytes []byte) error + func (rP2 Range2Proof) MarshalJSON() ([]byte, error) + type ResponseFinalizer interface + Finalize func(vp *ResponseVerifyParams) (*big.Int, error) + FinalizeWc func(vp *ResponseVerifyParams) (*big.Int, error) + type ResponseProof struct + Beta *big.Int + C2 *big.Int + R2proof *Range2Proof + func (rp ResponseProof) Finalize(vp *ResponseVerifyParams) (*big.Int, error) + func (rp ResponseProof) FinalizeWc(vp *ResponseVerifyParams) (*big.Int, error) + type ResponseProofParams struct + B *curves.EcPoint + C1 *big.Int + Curve elliptic.Curve + DealerParams *dealer.ProofParams + Pk *paillier.PublicKey + SmallB *big.Int + func (rp ResponseProofParams) Prove() (*ResponseProof, error) + func (rp ResponseProofParams) ProveWc() (*ResponseProof, error) + type ResponseVerifyParams struct + B *curves.EcPoint + C1 *big.Int + Curve elliptic.Curve + DealerParams *dealer.ProofParams + Sk *paillier.SecretKey