In building the stock market application I want to use the public key from an RSA generated pair as the account owners id, so no username or password, just the public key.
If they wanted to use another keypair(for example the one they have is compromised) they can keep the same public key as an ID but the actuall public key used for authentication is a new one.
Is this a good idea? Or is it a better choice to use an email address as the users ID (remember the ID must be unique), this way a user can change the keypairs used for their account
How does bitcoin manage this? It can generate many keys (bitcoin addresses) for a single wallet, what is the id used in the wallet(that owns all those public keys?)?