public static ECPoint fromBouncyCastleECPoint(
      final org.bouncycastle.math.ec.ECPoint bouncyCastleECPoint) {
    final ECFieldElement xCoord = bouncyCastleECPoint.getAffineXCoord();
    final ECFieldElement yCoord = bouncyCastleECPoint.getAffineYCoord();

    final Bytes32 xEncoded = Bytes32.wrap(xCoord.getEncoded());
    final Bytes32 yEncoded = Bytes32.wrap(yCoord.getEncoded());

    final BigInteger x = xEncoded.toUnsignedBigInteger();
    final BigInteger y = yEncoded.toUnsignedBigInteger();

    return new ECPoint(x, y);
  }
From bouncy castle ec point to ECPoint.

@param bouncyCastleECPoint the bouncy castle ec point
@return the ECPoint
crypto/algorithms/src/main/java/org/hyperledger/besu/crypto/ECPointUtil.java