That would be the London Charter of the International Military Tribunal. It defined the crimes that the German and Japanese could be tried for and the proceedings to be used.
All too true, but it was not in force until 1945. Any judgment based solely on the London Agreement would have to be considered Ex Post Facto, would it not, as the acts under consideration were performed beforehand?