// Exp computes base^exponent in ECGroup. This actually means exponent * base as this is
// additive group.
Exp computes base^exponent in ECGroup. This actually means exponent * base as this is
additive group.
// Exp computes base^exponent in ECGroup . This actually means exponent * base as this is // additive group .
func (group *ECGroup) Exp(base *ECGroupElement, exponent *big.Int) *ECGroupElement {
	hx, hy := group.Curve.ScalarMult(base.X, base.Y, exponent.Bytes())
	return NewECGroupElement(hx, hy)
}
func ( group * ECGroup ) Exp ( base * ECGroupElement , exponent * big . Int ) * ECGroupElement { hx , hy := group . Curve . ScalarMult ( base . X , base . Y , exponent . Bytes ( ) ) return NewECGroupElement ( hx , hy ) }
Exp computes base^exponent in ECGroup.
Exp computes base^exponent in ECGroup .
// computes (x, y) * exponent