// Decrypts the cypher text and returns the partial decryption
Decrypts the cypher text and returns the partial decryption
// Decrypts the cypher text and returns the partial decryption
func (tpk *ThresholdPrivateKey) Decrypt(c *big.Int) *PartialDecryption {
	ret := new(PartialDecryption)
	ret.Id = tpk.Id
	exp := new(big.Int).Mul(tpk.Share, new(big.Int).Mul(TWO, tpk.delta()))
	ret.Decryption = new(big.Int).Exp(c, exp, tpk.GetNSquare())
	return ret
}
func ( tpk * ThresholdPrivateKey ) Decrypt ( c * big . Int ) * PartialDecryption { ret := new ( PartialDecryption ) ret . Id = tpk . Id exp := new ( big . Int ) . Mul ( tpk . Share , new ( big . Int ) . Mul ( TWO , tpk . delta ( ) ) ) ret . Decryption = new ( big . Int ) . Exp ( c , exp , tpk . GetNSquare ( ) ) return ret }
Decrypts the cypher text and returns the partial decryption
Decrypts the cypher text and returns the partial decryption