code: public static byte[] publicKeyFromPrivate(BigInteger privKey, boolean compressed) {
          ECPoint point = publicPointFromPrivate(privKey);
          return point.getEncoded(compressed);
      }
docs: Returns public key bytes from the given private key. To convert a byte array into a BigInteger,
  use {@code new BigInteger(1, bytes);}