Well these requirements are, Locke argues, met by the social contract, the social contract in which individuals agree and consent with one another, and I quote him  to unite into a community for their comfortable, safe and peaceable living one amongst another   quote.