Article One of the United States Constitution
A bill of attainder is a law by which a person is immediately convicted without trial. An ex post facto law is a law which applies retroactively, punishing someone for an act that was only made criminal after it was done. The ex post facto clause does not apply to civil matters.