There really is no law, as such, or anything in the Constitution, that prevents the indictment of a sitting president. It's simply a directive and judgment by the office of legal counsel at the justice department.