South dakota constitution
Article VI: bill of rights
Section 12

No ex post facto law, or law impairing the obligation of contracts or making any irrevocable grant of privilege, franchise or immunity, shall be passed