So the sharingan evolved from the rinnegan, and the rinngan can be awakened from the sharingan, and then nagato, a uzumaki, has the rinnegan, you would assume he could have had the sharingan, making him a uchiha.
Anyways I think tobi is really hashirama