Proving one's identity is compatible with democratic elections