# Build Your Own Federated Messenger Protocol, Email-Style

Original title: How to Create Your Own Decentralized Messenger Protocol

> Hacker News story 50498073 · language: en · submitted 2026-11-14
> Web version: https://zeli.app/story/50498073
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 84 · by [fagnerbrack](<https://news.ycombinator.com/user?id=fagnerbrack>) · 💬 18
[original](<https://karboosx.net/post/5j7jdDM3/how-to-create-your-own-decentralized-messenger-protocol>) · [HN discussion](<https://news.ycombinator.com/item?id=50498073>)

## Summary

A hands-on walkthrough for building a federated chat protocol called lnchat, modeled on how SMTP servers discover and talk to each other. It covers email-shaped identities like adam@x.com, discovery through a .well-known JSON file, server-to-server endpoints for resolving and publishing public keys, and end-to-end encryption using HPKE-style encapsulation. The author is candid about the limits: a compromised server can lie about keys, so real E2E needs fingerprints, TOFU, or key transparency.

## Key quote

> If a server is responsible for publishing users' public keys, a malicious or compromised server could lie about a key.

## HN discussion (18 comments)

### [_spduchamp](<https://news.ycombinator.com/item?id=50499311>)

> Or use LXMF on Reticulum.
>
> https://github.com/markqvist/LXMF

### [vidarh](<https://news.ycombinator.com/item?id=50499762>)

> I find it funny that it starts with email and then proceed to dismiss it in favour of building a bunch of things from scratch.
>
> I have used email as a decentralised messaging protocol for software.
>
> It works just fine, and we got a lot for free, including queueing, retries, federated lookup etc.
>
> And it made debugging so easy: Just Cc: messages, or send messages from your email client.
>
> It underpinned part of the initial infrastructure for the demo registrar platform and the email forwarding for the .name top level domain.

---

## Cite

- Page: https://zeli.app/story/50498073
- Date: 2026-11-14
- Source: karboosx.net (https://karboosx.net/post/5j7jdDM3/how-to-create-your-own-decentralized-messenger-protocol)
- Hacker News: https://news.ycombinator.com/item?id=50498073

## Other languages

- zh: https://zeli.app/zh/story/50498073 · markdown: https://zeli.app/zh/story/50498073.md
- ja: https://zeli.app/ja/story/50498073 · markdown: https://zeli.app/ja/story/50498073.md
- ko: https://zeli.app/ko/story/50498073 · markdown: https://zeli.app/ko/story/50498073.md
- de: https://zeli.app/de/story/50498073 · markdown: https://zeli.app/de/story/50498073.md
- es: https://zeli.app/es/story/50498073 · markdown: https://zeli.app/es/story/50498073.md
- ru: https://zeli.app/ru/story/50498073 · markdown: https://zeli.app/ru/story/50498073.md
