// ComputeCommit returns G^a * H^r % group.N for a given a and r. Note that this is exactly
// the commitment, but with a given a and r. It serves as a helper function for
// associated proofs where g^x * h^y % group.N needs to be computed several times.
ComputeCommit returns G^a * H^r % group.N for a given a and r. Note that this is exactly
the commitment, but with a given a and r. It serves as a helper function for
associated proofs where g^x * h^y % group.N needs to be computed several times.
// ComputeCommit returns G^a * H^r % group . N for a given a and r . Note that this is exactly // the commitment but with a given a and r . It serves as a helper function for // associated proofs where g^x * h^y % group . N needs to be computed several times .
func (df *damgardFujisaki) ComputeCommit(a, r *big.Int) *big.Int {
	tmp1 := df.QRSpecialRSA.Exp(df.G, a)
	tmp2 := df.QRSpecialRSA.Exp(df.H, r)
	c := df.QRSpecialRSA.Mul(tmp1, tmp2)
	return c
}
func ( df * damgardFujisaki ) ComputeCommit ( a , r * big . Int ) * big . Int { tmp1 := df . QRSpecialRSA . Exp ( df . G , a ) tmp2 := df . QRSpecialRSA . Exp ( df . H , r ) c := df . QRSpecialRSA . Mul ( tmp1 , tmp2 ) return c }
ComputeCommit returns G^a * H^r % group.N for a given a and r. Note that this is exactly
the commitment, but with a given a and r. It serves as a helper function for
associated proofs where g^x * h^y % group.N needs to be computed several times.
ComputeCommit returns G^a * H^r % group . N for a given a and r . Note that this is exactly the commitment but with a given a and r . It serves as a helper function for associated proofs where g^x * h^y % group . N needs to be computed several times .