pointFromScalar function

Uint8List? pointFromScalar(
  1. Uint8List d,
  2. bool compress
)

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);
}