Creditor protection for an IRA

How IRAs are protected in bankruptcy and against creditors, and why the answer depends on state law.