Imagine your nostr posts are encrypted to only the people you follow.
Discussion
that's a lot of keys isn't it?
Imagine if it is only one! 🤯
If clients supported it you could use a single encryption key that rotates when you change your follow list and posts a DM-like event with a new Kind for each of the people who can read them now. Actually you only need to rotate when you unfollow
Exactly! And with Merkle trees this becomes super efficient.
What's the tree for? 🤔
This way if you kick out one person, not everyone has to rotate keys, but only those along the path of the tree. Scales logN
You'll have to post one encrypted Kind "1" for each active key though. There's a tradeoff between how often you post and how often you unfollow people
No, one key to encrypt/decrypt for all your follows.
There are distributed key generation functions for this that each receiver runs independently.
I was wanting something like this that could be implemented on the fly, when you want to say share more private info.
"Only people followed by calle can see these posts"
Or:
"Subscribe to read calle's posts"
So cool, you can build awesome stuff with this.
this seems equivalent to Matrix rooms. Sounds complicated, but I'm sure it's doable.
What I don't think would work is making posts authored before you followed somebody visible to them after you follow them.
Matrix encryption is not optimal, but yes its similar.
Indeed, this has forward secrecy and new follows don't see old posts.
I think that feature is in 0xchat
Currently, 0xChat implements gift-wrapping notes and sending them to selected friends, which works well when the number of friends is small. However, if the number of friends is larger, it might be worth considering integrating an MLS group approach to handle this more efficiently.
This makes a lot of sense as an option!