def deserialize(self, f):
    self.header.deserialize(f)
    self.nonce = struct.unpack('<Q', f.read(8))[0]
    self.shortids_length = deser_compact_size(f)
    for _ in range(self.shortids_length):
        self.shortids.append(struct.unpack('<Q', (f.read(6) + b'\x00\x00'))[0])
    self.prefilled_txn = deser_vector(f, PrefilledTransaction)
    self.prefilled_txn_length = len(self.prefilled_txn)
def deserialize(self, f):
    self.header.deserialize(f)
    self.nonce = struct.unpack('<Q', f.read(8))[0]
    self.shortids_length = deser_compact_size(f)
    for _ in range(self.shortids_length):
        self.shortids.append(struct.unpack('<Q', (f.read(6) + b'\x00\x00'))[0])
    self.prefilled_txn = deser_vector(f, PrefilledTransaction)
    self.prefilled_txn_length = len(self.prefilled_txn)