def deserialize(self, f):
    self.filter_type = struct.unpack('<B', f.read(1))[0]
    self.stop_hash = deser_uint256(f)
    self.prev_header = deser_uint256(f)
    self.hashes = deser_uint256_vector(f)
def deserialize(self, f):
    self.filter_type = struct.unpack('<B', f.read(1))[0]
    self.stop_hash = deser_uint256(f)
    self.prev_header = deser_uint256(f)
    self.hashes = deser_uint256_vector(f)