jeremyckahn / chitchatter

Secure peer-to-peer chat that is serverless, decentralized, and ephemeral
https://chitchatter.im/
GNU General Public License v2.0
1.44k stars 164 forks source link

Personal rooms #215

Open jeremyckahn opened 7 months ago

jeremyckahn commented 7 months ago

I'm envisioning a sort of "personal room" feature where one peer has host/admin privileges based on a locally-generated public/private room key pair.

We can use the Web Crypto API to generate public/private keys. Here's a POC for that: https://gist.github.com/jeremyckahn/66d54e4960bf42e3256f48004aab7ce6

And here's a rough idea of how the user flow might work to achieve this: Personal room flowchart

Originally posted by @jeremyckahn in https://github.com/jeremyckahn/chitchatter/issues/209#issuecomment-1839938878