Tor network is considered to be a main tool for achieving network anonymity. But it is of common knowledge, that Tor was created by programmers in US Navy. Yet the main "spy" on the net is considered to be NSA, another "department" in US Government.
What are the reasons to believe that Tor doesn't just log all the connections to it's assigned "anonymous" IP, and that every person using Tor is identified to an interested party (For creators, for example).
My question is about Tor basis of operation, and how it ensures that the "mapping" of real IP to Tor IP isn't being provided to NSA or other party related to Tor creators?