Rosenbergs were never charged with treason. They were convicted of espionage.
Constitution makes it extremely hard to prove treason.
You’ve read the Constitution!