Most of the world already has a "interaction between a natural person and the government is subject to formal identification with government-issued documentation", the US could indeed go that route if they wanted. Nobody could feasibly ban private anonymous communication, though.