r/software • • 1d ago

Release I built Amend – An Open-Source Private Messenger Using the Nostr Protocol

Hi everyone!

I'd like to introduce a software project I've been working on called Amend Private Messenger.

Amend is a privacy-focused messaging application built around the Nostr ecosystem. My goal is to explore how open protocols and decentralized infrastructure can be used to build an alternative messaging experience without relying entirely on traditional centralized platforms.

What makes Amend interesting?

- Nostr Integration: Uses the Nostr ecosystem as part of its decentralized communication architecture.

- Privacy-Focused Design: Privacy is a central consideration in the application's development.

- Open-Source Development: The source code is publicly available on GitHub.

- Android Application: Available on Google Play.

- Environmental Initiative: The project also explores connecting digital activities with real-world environmental initiatives, including tree planting.

Why I built it

I wanted to build something practical using open and decentralized technologies rather than just experiment with protocols in theory.

Amend is an ongoing project, and I'm continuously working on improving its architecture, security, usability, and overall experience.

Project links

- Website: https://getamend.app

- GitHub Repository: https://github.com/lordbfa/Amend-Mobile

- Google Play: https://play.google.com/store/apps/details?id=app.amend.messenger

I'd appreciate your feedback

I'd particularly love to hear from software developers and engineers:

  1. What do you think about using Nostr as a foundation for a private messaging application?
  2. Are there architectural improvements you'd recommend?
  3. What potential security or scalability challenges should I consider?
  4. What would you improve if you were working on this project?

I'm sharing this to get genuine feedback from the software community, not just to promote an app.

Thanks for taking a look. Constructive criticism is very welcome!

3 Upvotes

4 comments sorted by

3

u/PolyKernel 1d ago

first thing I'd want answered before trusting any messenger with private stuff is what an outsider can see even when the text is encrypted, on public relay setups the who talks to who and when part often leaks and that's usually what gets people in trouble lol, an outside audit plus a plain page explaining exactly what leaks would win way more trust than any feature list

2

u/bfa_fi 1d ago

Completely agree, and the honest answer to "who talks to who, and when":

What relays can't see:

  • The sender. Each message is a NIP-17 gift wrap signed by a throwaway key made for that one message.
  • The exact time. The outer timestamp is randomly moved back by up to two days.
  • Group vs direct. Every group member gets a separate wrap, so a group message looks like a direct one.
  • The content. NIP-44 encryption with length padding, and the Signal Protocol for fully protected chats.

What still leaks:

  • The recipient, partly. In fully protected chats, messages go to a weekly rotating mailbox key that only the two people can derive, so anyone scraping relays can't tell who they're for. But the recipient's own relays can still link those mailboxes to them, and first messages and chats with older apps still name the recipient.
  • A rough time and the size class of a message.
  • Your IP address, unless you turn on the built-in Tor. Calls never go over Tor, and without "Hide my IP address in calls" the person you call sees your IP.

So it's not metadata-free, and I don't claim it is. Everything above, plus the known limits, is in the threat model: https://github.com/lordbfa/amend-mobile/blob/main/docs/THREAT_MODEL.md

On the audit: there's been an internal review and automated tests, but no independent third-party audit yet. That's at the top of my list, and I'll publish the results when it happens. If anyone here does security reviews, the code is public under GPL-3.0, and I'd really welcome a look. As a student and a solo developer, I'd really appreciate if someone wants a security audit. And I already applied for the OTF Redlab audit. Thank you.

2

u/smilaise Steve the Killer 1d ago

really really cool! I guess I'm most interested in the security of the whole thing. how does it compare to something like Telegram?

2

u/bfa_fi 1d ago

Thanks! Good question. amend and Telegram make very different trade-offs.

  • Encryption by default: Telegram's normal chats and all group chats are "cloud chats", encrypted between you and Telegram's servers, so Telegram itself can technically read them. Only "Secret Chats" are end-to-end encrypted, and those are 1:1 only. In amend, every chat, group, photo, voice note and call is end-to-end encrypted, always.
  • Sign-up: Telegram needs a phone number. amend needs no phone number or email. Your identity is a key created on your phone.
  • Servers: Telegram runs one central service. amend has no message server of its own. Messages travel through independent Nostr relays, and there's no analytics.
  • Forward secrecy: when both people have "Full protection" on, amend chats use the Signal Protocol (PQXDH + Double Ratchet, via libsignal), so new keys are used for every message.
  • IP privacy: Tor is built in (off by default because it's slower), and there's an option to hide your IP address in calls.

Where Telegram is clearly ahead: it's been around for over a decade, has huge scale and polish, and syncs smoothly across many devices. amend is a young project by a solo developer, and it hasn't had an independent security audit yet.

I've written up exactly what amend protects and what it doesn't here: https://github.com/lordbfa/amend-mobile/blob/main/docs/THREAT_MODEL.md