Here's why:
* Anonymity means being unknown or unnamed.
* Identity refers to who someone is, their individual characteristics, and their unique qualities.
Therefore, the opposite of being unknown is being known, and the opposite of having no identity is having a distinct identity.