<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Arya</title>
    <description>The latest articles on DEV Community by Arya (@xiaofan).</description>
    <link>https://dev.to/xiaofan</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4210050%2F17e041fa-b432-4f62-8857-b69dbe223e77.png</url>
      <title>DEV Community: Arya</title>
      <link>https://dev.to/xiaofan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/xiaofan"/>
    <language>en</language>
    <item>
      <title>Peer-to-peer chat: connecting by name, with permission</title>
      <dc:creator>Arya</dc:creator>
      <pubDate>Thu, 12 Nov 2026 03:40:37 +0000</pubDate>
      <link>https://dev.to/xiaofan/peer-to-peer-chat-connecting-by-name-with-permission-3m61</link>
      <guid>https://dev.to/xiaofan/peer-to-peer-chat-connecting-by-name-with-permission-3m61</guid>
      <description>&lt;p&gt;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?&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz9r8h480itovskrfhbve.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz9r8h480itovskrfhbve.png" alt="A conversation in DHttp Workspace" width="800" height="473"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;First, though, how do you know you’re talking to the right person?&lt;/p&gt;

&lt;p&gt;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. During connection setup, you prove possession of the matching private key, which stays on your device.&lt;/p&gt;

&lt;p&gt;But verifying someone’s identity doesn’t give them unrestricted access to your services.&lt;/p&gt;

&lt;p&gt;If I want Bob to send me messages, I allow his identity to make &lt;code&gt;POST&lt;/code&gt; requests to my messaging endpoint. If Bob wants to receive my messages, he grants permission on his side too. Workspace puts this into the contact interface: each person chooses what access to request and what to offer. Accepting a contact doesn’t automatically grant chat permission, and allowing someone to send messages doesn’t let them read my entire chat history.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkyk2n874bwou4p6azyx3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkyk2n874bwou4p6azyx3.png" alt="Requesting and granting messaging permissions in DHttp Workspace" width="800" height="473"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This also works when we’re on different home networks. DHttp handles endpoint discovery and NAT traversal underneath, attempting a direct connection and using a relay when needed. We don’t have to configure a VPN or join the same virtual private network first. For chat, I’d like knowing someone’s name and having their permission to be enough to reach them, without first arranging for our devices to share a private network.&lt;/p&gt;

&lt;p&gt;That’s the part I find interesting. What looks like agreeing to receive someone’s messages is an access rule tied to their verified identity. Knowing my name doesn’t give them access to my other services. Both endpoints still need to be online and reachable, and private keys need to be kept safe. Peer-to-peer changes how we communicate; it doesn’t take care of every security concern for us.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>security</category>
      <category>opensource</category>
      <category>rust</category>
    </item>
    <item>
      <title>Identity should not start with another account</title>
      <dc:creator>Arya</dc:creator>
      <pubDate>Thu, 29 Oct 2026 08:32:12 +0000</pubDate>
      <link>https://dev.to/xiaofan/identity-should-not-start-with-another-account-hel</link>
      <guid>https://dev.to/xiaofan/identity-should-not-start-with-another-account-hel</guid>
      <description>&lt;p&gt;Most online services begin by creating another account and storing another copy of our data. The service controls the identity, the data, and the rules for accessing it.&lt;/p&gt;

&lt;p&gt;Keeping data on a personal device or private server gives us more control, but it creates another problem: how can people, devices, services, and agents use that data across different networks without exposing the entire device or private network?&lt;/p&gt;

&lt;p&gt;DHttp is an open-source infrastructure stack built around this problem.&lt;/p&gt;

&lt;p&gt;In DHttp, an endpoint can have its own stable name and cryptographic identity. The identity is controlled by its owner, and the private key stays on the owner's device. A computer, device, service, or agent can be recognized across different networks without creating a new identity for every platform.&lt;/p&gt;

&lt;p&gt;Being reachable does not mean being public. APIs are private by default, and the owner decides which capabilities another identity can use.&lt;/p&gt;

&lt;p&gt;For example, a family member could control the lights and thermostat in a guest room without gaining access to cameras, door locks, personal files, or the rest of the private network.&lt;/p&gt;

&lt;p&gt;This is different from a VPN. A VPN places devices inside the same private network. DHttp keeps endpoints independent and uses identity and API permissions to decide who can do what.&lt;/p&gt;

&lt;p&gt;Developers can build extensions on top of this framework. An extension runs in the user's environment, uses the existing identity and permission system, and keeps its data there. Developers can focus on the service they want to create instead of rebuilding accounts, connectivity, and access control each time.&lt;/p&gt;

&lt;p&gt;The goal is an open ecosystem where devices, services, personal data, and agents can work together without giving control to a central platform.&lt;/p&gt;

&lt;p&gt;What would you build on this model? Which part would you design differently?&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>networking</category>
      <category>identity</category>
      <category>discuss</category>
    </item>
  </channel>
</rss>
