pointFromScalar function
Implementation
Uint8List? pointFromScalar(Uint8List d, bool compress) {
if (!isPrivate(d)) throw ArgumentError("Bad Private");
BigInt dd = decodeBigInt(d);
ECPoint pp = (G * dd) as ECPoint;
if (pp.isInfinity) return null;
return pp.getEncoded(compress);
}