Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInconsistentAlphaAndBeta is returned if the number of alpha and beta are inconsistent ErrInconsistentAlphaAndBeta = errors.New("inconsistent alpha and beta") )
Functions ¶
Types ¶
type Mta ¶
type Mta interface { OverrideA(newA *big.Int) (Mta, error) GetEncK() []byte GetAG(curve elliptic.Curve) *pt.ECPoint GetAProof(curve elliptic.Curve) (*zkproof.SchnorrProofMessage, error) GetAK() *big.Int GetProductWithK(v *big.Int) *big.Int Decrypt(c *big.Int) (*big.Int, error) Compute(publicKey homo.Pubkey, encMessage []byte) (*big.Int, *big.Int, error) GetProofWithCheck(curve elliptic.Curve, beta *big.Int) ([]byte, error) VerifyProofWithCheck(proof []byte, curve elliptic.Curve, alpha *big.Int) (*pt.ECPoint, error) GetResult(alphas []*big.Int, betas []*big.Int) (*big.Int, error) }
Click to show internal directories.
Click to hide internal directories.