Hamas has said it is ready to negotiate the next phase of the ceasefire in the Gaza Strip, after a swap in which it handed over the remains of four hostages in exchange for the release of more than 600 Palestinian prisoners held by Israel.