Converts G1 element @x into an array of bytes. If @compress is True, 
    the point will be compressed resulting in a much shorter string of bytes.

def serializeG1(x, compress=True):
    """
    Converts G1 element @x into an array of bytes. If @compress is True, 
    the point will be compressed resulting in a much shorter string of bytes.
    """
    assertType(x, G1Element)
    return _serialize(x, compress, librelic.g1_size_bin_abi,
        librelic.g1_write_bin_abi)