pointFromScalar function

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

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