Idea on how to run a captcha service over gossipsub

Let’s say each topic of the gossipsub is a public key.

  1. A peer requests a captcha challenge.
  2. The “admin peer” who owns the public key sends the captcha challenge.
  3. The peer sends back a captcha answer.
  4. The “admin peer” sends confirmation that the captcha answer was correct.

If a peer or IP address sends too many requests for challenges without sending back a correct captcha answer, he gets blocked by other peers to prevent spam and be able to scale.

Is this design technically possible with a pubsub gossip network and be able to scale to millions of users?