class ECUtil {

    public static byte[] createUncompressedPublicKey(ECPublicKey ecPublicKey) {
        byte[] x = convertToFixedByteArray(ecPublicKey.getW().getAffineX());
        byte[] y = convertToFixedByteArray(ecPublicKey.getW().getAffineY());

        byte format = 0x04;
        return ByteBuffer.allocate(65)
                .put(format)
                .put(x)
                .put(y)
                .array();
    }

    private  ECUtil();

}