The government of Sudan had said it was prepared to sign the peace agreement which was the result of two years of talks .