Former US Attorney Preet Bharara may wind up hating the US Supreme Court more than he does President Trump, who last week fired him.

Two of Bharara’s highest-profile targets — Mayor Bill de Blasio and ex-Assembly Speaker Sheldon Silver — both have the high court to thank for lowering the bar on what constitutes “public corruption.”

That change was a major factor in the decision to drop the case against de Blasio, which Bharara also came to before being fired March 11, sources told The Post.

The same Supreme Court decision from June — overturning the corruption conviction of ex-Virginia Gov. Bob McDonnell — was in play for Silver on Thursday in a hearing on the appeal of his 2015 corruption conviction.

The federal appellate panel in Manhattan questioned whether Silver’s misdeeds qualify as public corruption since the Supreme Court unanimously held that in accepting $175,000 in luxury gifts, McDonnell had given little more in return than setting up a few meetings and phone calls.

Only concrete quid pro quos — where a pol pockets gifts in exchange for official acts like signing a law — qualify as a bribe, the Supreme Court ruled.

Otherwise, “any powerful person who asks someone to do something is committing a federal crime because people are afraid of powerful people and want to curry their favor,” Appeals Court Judge Richard Wesley noted in the Silver hearing.