2.7 KiB
Kela
A new federation protocol. Kela combines the best ideas from email, IPFS, BitTorrent, ActivityPub, Nostr, Yggdrasil, AT, and Spritely.
Motivations
The web sucks, and no one knows how to fix it. The most successful decentralized web protocol, ActivityPub (or blockchains, if they actually worked), suffers from many problems, such as not being able to easily move accounts between servers, making it vulnerable to server shutdowns.
Ideals
Kela strives for these ideals:
- Simple: Many decentralized web protocols are horrendously complex (I'm looking at you, Urbit!). Kela is simple and can be taught to someone in 30 minutes.
- Powerful:
- Fast: Kela uses aggressive caching and minimizes the number of hops between user-to-user connections when possible.
- Secure:
Identity
ActivityPub uses usernames plus the instance URL (for instance, billiam@example.com
) as identifiers. This ties your identity strongly to a server, but it's actually not necessary. In Kela, each user is still associated with one (or more) servers, but public keys are identifiers. Each user has a public and private key, and when you want to find a user's server, you query a DHT formed by all servers. This returns a string containing their server's URL, signed with that user's private key to prevent tampering.
Your account can be associated with multiple servers, and your data is replicated between them. To prevent sync conflicts, you designate one server as your main server, which is a single source of truth that replicates data to all your other servers.
Because public keys are annoying to read and type, Kela uses a friendly petname system so users can assign human-readable names to public keys.
Applications
You can tunnel HTTP (no TLS needed!) over Kela to host websites.
Storage
Kela is also a decentralized storage system. You can store data on your server, and it will be replicated between them.
Issues
Coupling identity closely to public keys makes verifying message integrity easy. However, if your private key leaks, you are screwed.
History
A few core ideas for Kela were braindumped by Anthony Wang on the fediverse in April 2022 and written down in a repository. A few months later, Anthony Wang and Alek Westover developed a very basic prototype during HackMIT 2022. The name "Kela" comes from spelling "Alek" backwards.