def deserialize(self, f):
    self.filter_type = struct.unpack('<B', f.read(1))[0]
    self.block_hash = deser_uint256(f)
    self.filter_data = deser_string(f)
def deserialize(self, f):
    self.filter_type = struct.unpack('<B', f.read(1))[0]
    self.block_hash = deser_uint256(f)
    self.filter_data = deser_string(f)