Hamas and Israel have concluded a second day of indirect negotiations on United States President Donald Trump’s proposal to end the war on Gaza, as senior Qatari and US officials headed to Egypt to join the talks.

Speaking at the White House on the second anniversary of the start of the war, Trump said that there was a “real chance” of a Gaza deal, as Tuesday’s talks wrapped up in the Egyptian resort town of Sharm el-Sheikh.

However, the day had opened with an umbrella of Palestinian factions – including Hamas – issuing a statement that promised a “resistance stance by all means”, stressing that “no one has the right to cede the weapons of the Palestinian people” – an apparent reference to a key demand for the disarmament of the armed group contained in Trump’s 20-point plan.

Senior Hamas official Fawzi Barhoum said that the group’s negotiators were seeking an end to the war and “complete withdrawal of the occupation army” from Gaza. But Trump’s plan is vague regarding the exit of Israeli troops, offering no specific timeline for the staged rollout, which would only happen after Hamas returns the 48 Israeli captives it still holds, 20 of whom are thought to be alive.

A senior Hamas official who spoke to Al Jazeera on condition of anonymity after Tuesday’s talks indicated that the group intends to release captives in stages linked to the withdrawal of Israel’s military from Gaza.

The official said that Tuesday’s talks had focused on scheduling the release of Israeli captives and withdrawal maps for Israeli forces, with the group stressing that the release of the last Israeli hostage must coincide with the final withdrawal of Israeli forces.

Hamas’s top negotiator, Khalil al-Hayya, said the group did “not trust the occupation, not even for a second”, according to Egyptian state-linked Al Qahera News. He said Hamas wanted “real guarantees” that the war would end and not be restarted, accusing Israel of violating two ceasefires in the war on Gaza.

Israeli Prime Minister Benjamin Netanyahu released a statement to mark the anniversary of the Hamas-led attack on southern Israel on October 7, 2023, that sparked Israel’s war on Gaza, calling the last two years of conflict a “war for our very existence and future”.

He said that Israel was “in fateful days of decision”, without alluding directly to the ceasefire talks. Israel, he said, would “continue to act to achieve all the war’s objectives: the return of all the hostages, the elimination of Hamas’s rule, and ensuring that Gaza will no longer pose a threat to Israel”.

Staying flexible

Despite signs of continued differences, the talks appear to be the most promising sign of progress towards ending the war yet, with Israel and Hamas both endorsing many parts of Trump’s plan.

Qatar’s Ministry of Foreign Affairs spokesperson Majed al-Ansari said the mediators – Qatar, Egypt and Turkiye – were staying flexible and developing ideas as the ceasefire talks progress.

“We don’t go with preconceived notions to the negotiations. We develop these formulations during the talks themselves, which is happening right now,” he said.

Al-Ansari told Al Jazeera that Qatari Prime Minister and Foreign Minister Sheikh Mohammed bin Abdulrahman bin Jassim Al Thani will join other mediators – including Steve Witkoff and Jared Kushner for the US – on Wednesday in Egypt.

Sheikh Mohammed’s “participation confirms the mediators’ determination to reach an agreement that ends the war”, al-Ansari said.

Even if a deal is clinched, questions linger about who will govern Gaza and rebuild it, and who will finance the huge cost of reconstruction.

Trump and Netanyahu have ruled out any role for Hamas, with the former’s plan proposing that Palestinian “technocrats” run day-to-day affairs in Gaza under an international transitional governance body – the so-called “Board of Peace” – that would be overseen by Trump himself and the divisive former United Kingdom Prime Minister Tony Blair.

Hamas’s Barhoum said the group wanted to see “the immediate start of the comprehensive reconstruction process under the supervision of a Palestinian national body”.

Israeli attacks continue

The second anniversary of the war, which was sparked by deadly attacks on Israel that were led by Hamas on October 7, 2023, saw Israel pressing on with its offensive in Gaza, drones and fighter jets strafing the skies, targeting the Sabra and Tal al-Hawa residential areas in Gaza City and the road to nearby Shati camp.

At least 10 Palestinians were killed in Israeli attacks across Gaza on Tuesday, according to the official Palestinian news agency Wafa, adding to the grim toll of more than 66,600 deaths over the entire conflict. At least 104 people have been killed in Gaza by Israeli forces since Friday, the day Trump called on Israel to halt its bombing campaign.

Al Jazeera’s Hind Khoudary said on Tuesday that a boy had been shot in the head in eastern Gaza and that at least six Palestinians were killed in separate attacks across Khan Younis in the south of the Strip.

“Everyone’s waiting for a peace deal as the bombs continue to fall,” she said, reporting from az-Zuwayda in central Gaza. “The Israeli forces continue destroying entire residential neighbourhoods and residential areas where Palestinians thought they would go back and rebuild their lives.”

Marking the anniversary, ACLED, a US-based conflict monitor, said Gaza has endured more than 11,110 air and drone strikes and at least 6,250 shelling and artillery attacks throughout the war. Gaza’s dead accounted for 14 percent of total reported deaths from conflicts worldwide over the past two years.

The Gaza Health Ministry said 1,701 medical personnel had been killed in Gaza during the war.