pointFromScalar function
Point From Scalar
Implementation
Uint8List? pointFromScalar(Uint8List d, bool _compressed) {
if (!isPrivate(d)) throw ArgumentError(_throwBadPrivate);
BigInt dd = fromBuffer(d);
ECPoint pp = (_g * dd) as ECPoint;
if (pp.isInfinity) return null;
return getEncoded(pp, _compressed);
}