operator * method
Multiplies this ECPoint
by the given number.
@param k The multiplicator.
@return k * this
.
Implementation
@override
ECPointBase? operator *(BigInt? k) {
if (k!.sign < 0) {
throw ArgumentError('The multiplicator cannot be negative');
}
if (isInfinity) {
return this;
}
if (k.sign == 0) {
return curve.infinity;
}
return _multiplier(this, k, _preCompInfo);
}