def serialize(self, with_witness=True):
    r = b''
    r += super().serialize()
    if with_witness:
        r += ser_vector(self.vtx, 'serialize_with_witness')
    else:
        r += ser_vector(self.vtx, 'serialize_without_witness')
    return r
def serialize(self, with_witness=True):
    r = b
    r += super().serialize()
    if with_witness:
        r += ser_vector(self.vtx, 'serialize_with_witness')
    else:
        r += ser_vector(self.vtx, 'serialize_without_witness')
    return r