Building Communication From Scratch
Every community site eventually needs two things: a way to know who is who, and a way to talk to them. The default answer to both is an email address. Sign up with an email, log in with a password, get a newsletter at the same email. It works, and it quietly hands the keys to a third party: the mail provider that can lock you out, the password database that can leak, the list that can be sold.
This site is about people who'd rather not depend on that. So when it came time to add logins and messaging, the question was whether we could build both on the thing our members already have and already control: a cryptographic identity.
Identity first: sign a message, you're in
There is no password in the new login. Your browser extension holds a key; the site asks it to sign a short message, and the signature proves the key is yours. That's the whole login.
The details matter more than they sound:
- The server writes the message, not the browser. It includes the site's name, a random one-time number (a nonce), and an expiry. If the signature doesn't match that exact message, nothing happens.
- Each nonce works once. Even a wrong signature burns it, so a captured signature can't be replayed.
- The message names the domain. Wallet extensions warn you when the site asking for a signature isn't the site named in the message. That warning is the defense against phishing look-alikes, so we make sure the message always says the real domain, and never signs for one we don't recognize.
- Signing is free. It sends no transaction and costs nothing. We say so on the button, because people are right to be nervous about anything that touches a wallet.
If you've never been here before, signing creates your account. There's no separate sign-up and no approval queue, because the signature is the credential. The account starts with a placeholder name and no email at all, and that last part turned out to be the interesting engineering problem: the old account system assumed everyone has an email, so every assumption underneath it had to be loosened.
Messaging: reach the identity, not the inbox
Once people sign in with an identity rather than an email, "we'll email you" stops making sense. There may be no email to use. So the plan is to message the identity itself, over a protocol built for exactly that, rather than collecting addresses we'd then have to protect.
We started with the rules, before any delivery code:
- Consent is off by default. Nobody is messaged unless they ticked a box saying so. The box is never pre-ticked, and you can change your mind from your account page at any time.
- Consent is checked twice. Once when a message is queued, and again at the moment it's sent. If you opt out in between, you're skipped.
- Only staff can send. Regular members can't, and a message goes only to the members who opted in. There's no "send to everyone" that ignores consent.
- Everything is on the record. Each message keeps a per-recipient status (sent, pending, unreachable, skipped, failed), so staff can see what happened rather than assume.
- Message text stays out of the logs. When delivery fails, the error says what kind of failure it was, not what we were trying to say.
Not everyone can be reached, and we'd rather say so than pretend. Some identities have no inbox on the messaging network, and some chains aren't supported by it yet. Those recipients are marked as skipped, and the staff page says so.
What went wrong along the way
A build log that only lists wins isn't much use, so:
-
One shared bucket. Our rate limits were counting every visitor as the same address, because requests reach the app through a proxy on the same machine. One person hammering the login could have locked out everyone. The fix is a single setting that tells the app how many proxies sit in front of it, but we only noticed because we were counting how many requests a sign-in actually takes (two).
-
Two spellings of one site. The site answers on both
example.organdwww.example.org. A signed message has to name exactly one, so "just pick one" would have meant a scary wallet warning for half our visitors. The server now signs for whichever of the two you're actually on. -
The empty email. Making email optional sounds like deleting a constraint. It's really a question of "empty" versus "absent": two accounts with an empty-string email collide, while two with no email at all don't. Worth testing before a real user finds it.
-
Sessions that ended after thirty minutes. The old login stored a short-lived token and never used the long-lived one issued alongside it. Invisible when you click around for a minute; painful when you're reading a long article. It's fixed, and it mattered more once people stopped being able to just retype a password.
-
Docs that described a different version. The messaging protocol's website documents its newest release candidate, but the stable package on npm is the previous major version, with different options and no production address we could find in the docs. Rather than guess, we read the type definitions that ship inside the package itself, pinned that exact stable version, and wrote the one small module that touches it against those. When the docs and the code disagree, the code wins.
Where it stands
Working and tested: signing in with an Ethereum-style identity or a Solana one, linking a second identity to an existing account, the consent controls, the staff compose page, the delivery records, and the sender, the small service that holds the site's own messaging identity and does the sending.
We checked delivery end to end on the protocol's test network, using throwaway identities and no member data. A message sent through our code to a registered identity arrived intact; one to an identity with no inbox came back as "unreachable" instead of failing. The sender never logs or returns message text or addresses, and it refuses to start if its key doesn't belong to the address we announced as the site's.
Not switched on yet: sending to real members. That needs the site's messaging key placed on the server and the service pointed at the live network instead of the test one, both deliberate manual steps. Until then, queued messages wait and nothing is lost. Solana identities can't receive these messages at all yet, because the protocol only reaches Ethereum-style addresses, and the staff page says so.
The email-and-password login is still there, for now. It's a bridge, not the destination. The plan is for an identity to be the only way in.
We'll write up the live side once a real member has received a real message.
1 reply
- Amazon Frogman[2026-11-23 00:31]
This sounds really cool
log in to reply.