fromPrivateKey static method

Point fromPrivateKey(
  1. BigInt k
)

Create point from a private key

Implementation

static Point fromPrivateKey(BigInt k) {
  if (Utilities.ge(k)) {
    return G.mul(k);
  }
  // must be 0 < k < CURVE.n
  throw Exception('private key out of range');
}