Menu

1 / 3

Peer-to-peer chat: connecting by name, with permission

DEV Community: rust·Arya·6 days ago
#Xzx7TOCs
#devtorust#devto#dev#messages#name
Reading 0:00
15s threshold

Sending a friend a message usually means opening the same messaging app and letting the platform deliver it. Even when the content is end-to-end encrypted, the conversation still depends on that platform. Could we reach a friend’s endpoint, verify who we’re talking to, and send the message there?

DHttp’s Workspace offers this kind of chat. The interface is familiar: add a contact, send some text, share a photo or file, or record a voice message. Behind the interface, the two endpoints exchange messages with each other.

First, though, how do you know you’re talking to the right person?

A DHttp identity consists of a domain-style name, a public–private key pair, and a certificate. The name lets others find your endpoint, while the certificate binds that name to your public key.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.