A top Hamas political official told The Associated Press the Islamic militant group is willing to agree to a truce of five years or more with Israel and that it would lay down its weapons and convert into a political party if an independent Palestinian state is established along pre-1967 borders.
Hamas ran in the 2006 election under a completely different name, in an effort to demonstrate that they can in fact separate themselves from their militant faction.
Remember, Israel also had its origins in armed struggle (against the British).
Edit: although this is probably Israeli projection, given that the armed factions did become the Israeli military. And we all know what they’re up to.