I'm stuck at the design level of implementing end-to-end encryption with Firebase Firestore.
Let's say that I store user's private key on his device, what should i do when user decides to uninstall the app and install it later, or when he loses his device?
Given that his encryption key is stored only on his device, everything gets lost, do i just create new private key and "mark" his previous data as inaccessible?
The simple solution that i can think of is storing the user's private key in the database, but that's not really the goal.