def deserialize(self, f):
    self.nVersion = struct.unpack('<i', f.read(4))[0]
    self.hashPrevBlock = deser_uint256(f)
    self.hashMerkleRoot = deser_uint256(f)
    self.nTime = struct.unpack('<I', f.read(4))[0]
    self.nufos = struct.unpack('<I', f.read(4))[0]
    self.nNonce = struct.unpack('<I', f.read(4))[0]
    self.sha256 = None
    self.hash = None
def deserialize(self, f):
    self.nVersion = struct.unpack('<i', f.read(4))[0]
    self.hashPrevBlock = deser_uint256(f)
    self.hashMerkleRoot = deser_uint256(f)
    self.nTime = struct.unpack('<I', f.read(4))[0]
    self.nufos = struct.unpack('<I', f.read(4))[0]
    self.nNonce = struct.unpack('<I', f.read(4))[0]
    self.sha256 = None
    self.hash = None