United States · U.S. Constitution · Hard
Both the federal government (Article I, Section 9) and the states (Article I, Section 10) are prohibited from passing bills of attainder (legislative punishment) and ex post facto laws (retroactive criminalisation).