New mexico constitution
Article II: bill of rights
Section 19

No ex post facto law, bill of attainder nor law impairing the obligation of contracts shall be enacted by the legislature.