Holochain Forum

Lobby

Problem

Agents who want to enter a privileged DHT with access controlled by Membership by Invitation need some way of getting the right credentials from an authority in that privileged DHT. But if they can’t join the DHT, they can’t talk to the authorities, and if they can’t talk to the authorities, they can’t join the DHT.

Solution

Create a ‘lobby’ DHT associated with the privileged DHT. Anyone can become a member of the lobby, and all authorities that have power to grant access to the privileged DHT are already members of the lobby.

Using some sort of messaging mechanism in the lobby DHT, Alice (an unprivileged agent) asks Bob (an authority in the privileged DHT) for permission to join the privileged DHT. Using his bridge to the privileged DHT, Bob creates a Privilege Certificate that grants Alice permission to join. Alice includes this certificate in her agent ID entry, according to the Membership by Invitation pattern.