Authenticated PubSub #236
Description
@whyrusleeping asked me to post some use cases for an authenticated pubsub api. In this api the topic to subscribe to would be a public key (or one could consider a path starting with a public key for more fine grained control). Anyone can subscribe to a key. However all updates have to be signed by the corresponding private key, and the network would verify these signatures before propagating them.
We would use this in Peergos to allow only users with write access to a part of the filesystem to publish updates.
I can imagine an equivalent to an RSS feed, or even a plain blog, being done using this.
The only sticky point I can think of is ensuring replay attacks aren't possible. Where nodes without the private key republish an old update, but there are techniques to solve this.