The SIAR Manifesto: A Story of Survivable Identity & Autonomous Routing
"When the lights go out, the wires go dead, and the servers fall silent, who are you? And how will you reach the ones you love?" Prologue: The Fragility of the Connected World We live in an era defined by an illusion of permanent connectivity. We walk through crowded streets, our eyes fixed on glowing rectangles of glass, sending fragments of our thoughts across the globe in milliseconds. We rely on a delicate, invisible scaffolding of fiber-optic cables, cellular towers, data centers, and centralized databases. We trust that when we press "send," the message will arrive. We trust that our digital identity—our phone number, our username, our profile picture—will remain tethered to our physical selves. But this scaffolding is fragile. It is built on the assumption of perpetual power, continuous maintenance, and unbroken peace. Imagine, for a moment, the sudden silence. It could be a localized disaster—a hurricane tearing through a coastal city, severing the undersea cables and toppling the cell towers. It could be a cascading failure of the power grid, leaving entire regions plunged into darkness. It could be a geopolitical event, a solar flare, or a targeted cyberattack on critical infrastructure. In these moments, the modern world does not just lose its convenience; it loses its voice. When the internet dies, the traditional messengers die with it. Applications like WhatsApp, Signal, Telegram, and iMessage are marvels of modern cryptography, but they share a fatal flaw: they are tethered to the cloud. They require central servers to handshake, to route, to verify identities, and to store messages in transit. If the central registry cannot be reached, the application becomes a brick. Your phone number is suddenly just a string of digits, routed through SS7 networks tied to a telecom's Home Location Register. If that register is offline, you are a ghost. You are surrounded by people, yet entirely alone. This is the nightmare scenario that birthed SIAR. SIAR is not merely a messaging application. It is a contingency plan for humanity. It is a zero-infrastructure, multi-transport, offline-first decentralized messaging and Delay-Tolerant Networking (DTN) platform. It was forged in the belief that communication is a fundamental human right, one that should not be subject to the whims of corporate server uptime or the stability of the global power grid. The name SIAR stands for Survivable Identity & Autonomous Routing. But beyond its technical acronym lies a deeper, more poetic story—a narrative of returning to our roots, of finding freedom in the wilderness of the airwaves, and of building lighthouses in the dark. This document is the lore, the philosophy, and the technical soul of the SIAR project. Chapter 1: The Etymology of Resilience – Decoding "Siar" To understand the soul of the project, one must first understand the weight of its name. "SIAR" is not just an arbitrary collection of letters chosen for a clever acronym. The word itself carries ancient resonance, bridging the gap between human history and the future of decentralized technology. The Irish Frontier: Going Westward and Going Back In the ancient Celtic traditions, particularly within the Irish language (Gaelic), the word síar (pronounced "sheer") holds profound directional and temporal significance. It translates to "west" or "westward" www.names.org . In the mythology of the Celts, the West was the direction of the setting sun, the realm of the Otherworld, the untamed wilderness, and the great unknown. To go siar was to leave the safety of the known world and venture into the frontier. But siar also carries a second, equally powerful meaning: "to go back" or "backward" www.facebook.com . It does not mean retreating in fear; rather, it signifies a return to an important origin, a journey back to one's roots www.facebook.com . SIAR, as a networking protocol, embodies both of these ancient definitions. By moving "westward," SIAR ventures into the uncharted territory of off-grid communication, leaving behind the centralized, heavily monitored, and heavily monetized "East" of the modern web. By going "back," SIAR returns to the original, foundational dream of computer networking: peer-to-peer packet radio and mesh networking. Before the internet became a series of centralized tubes owned by conglomerates, it was designed to survive a nuclear strike by routing packets dynamically across decentralized nodes. SIAR is a return to that original, survivable ethos. The Kalayaan Tree: The Symbol of Freedom Travel across the globe to the Philippines, and you will find another profound meaning for the word. In Tagalog and various Philippine languages, the Siar tree (Peltophorum pterocarpum), also known as the Yellow Flame Tree or Copperpod, is a towering, resilient native species www.facebook.com . It is famous for its brilliant canopy of golden blooms that provide deep, cooling shade in the tropical heat. More importantly, the Siar tree is locally known as the Kalayaan Tree—the Tree of Freedom. History records that a Siar tree was planted by General Emilio Aguinaldo during a lull in the Malolos Convention, serving as a silent witness to the birth of a republic and becoming a lasting symbol of independence and resistance against centralized colonial rule commons.wikimedia.org . When an internet outage strikes, people will naturally gather in physical spaces to seek information and community. In the SIAR ecosystem, the siar-emergency-node acts as a digital Siar tree. It is a headless, solar-powered repeater planted in the community, providing the "shade" of connectivity. It is a symbol of digital Kalayaan—freedom from the centralized overlords of the cloud, allowing a community to maintain its sovereign communication network even when the world around it has fallen silent. The Oceanic Connection Furthermore, in the realm of linguistics, Siar is the name of an Oceanic language spoken by the communities of New Ireland in Papua New Guinea theswissbay.ch . It represents a hyper-local, deeply community-driven method of connection, isolated from the major global tongues but perfectly adapted to its environment. SIAR, the protocol, is designed to be exactly this: a localized, adaptable language for devices to speak to one another when the global lingua franca of TCP/IP and HTTP has broken down. Thus, the name SIAR is a tapestry of survival: the frontier of the West, the return to our networking roots, the shade of the Freedom Tree, and the voice of the isolated island. It is Survivable Identity & Autonomous Routing. Chapter 2: The "S" – Survivable Identity in a World of Glass The first pillar of SIAR is Survivable Identity. To understand why this is revolutionary, we must examine the fragility of modern digital identity. The Illusion of the Phone Number Today, your digital identity is largely tied to your phone number. This system, known as the Public Switched Telephone Network (PSTN), relies on a centralized hierarchy. When you use Signal or WhatsApp, the application queries a central server to map your phone number to a cryptographic key. This requires the telecom infrastructure to be operational, the central servers to be online, and the DNS (Domain Name System) to be resolving correctly. If the cellular network collapses during a disaster, your phone number is effectively erased from the digital landscape. You cannot receive the SMS verification codes required to log into a new device. You cannot prove to your friends that you are who you say you are. You are locked out of your own digital life. The Genesis of Self-Sovereign Identity SIAR rejects the phone number as a primary identifier. Instead, SIAR is built on the philosophy of Self-Sovereign Identity (SSI). In the SIAR ecosystem, your identity is not granted to you by a telecom company, a government, or a tech corporation. It is generated by the silicon in your hand. When you first launch a SIAR application—whether it is the Android Jetpack Compose UI, the Dioxus Desktop GUI, or the Terminal Messenger (siar-cli)—the pure-Rust core engine immediately generates a DeviceIdentity. This identity is a cryptographic anchor, consisting of: Ed25519 Signing Keys: Used to mathematically prove that a message or a routing packet originated from your device and has not been tampered with. X25519 Key Exchange Keys: Used to establish secure, encrypted tunnels with other devices in the mesh. This identity is stored locally, encrypted at rest, and entirely controlled by the user. It does not require an internet connection to be verified. When two SIAR devices come into physical proximity—perhaps communicating over a direct Bluetooth Low Energy (BLE) link in a crowded emergency shelter—they exchange cryptographic "Peer Tickets." They verify each other's Ed25519 signatures, establish a shared secret via X25519, and instantly recognize each other. Surviving the Compromise Survivable Identity also means surviving the physical compromise of a device. In a disaster scenario, or in regions with hostile state actors, devices may be seized, lost, or destroyed. SIAR employs OpenMLS (Messaging Layer Security) to ensure that the identity of the group and the integrity of the conversation survive even if individual nodes fall. Unlike older protocols that rely on pairwise encryption (which becomes a logistical nightmare in large, ad-hoc mesh groups where users are constantly entering and leaving radio range), OpenMLS utilizes a continuous group key agreement protocol. It builds a "ratchet tree" of cryptographic keys. If a device is lost or its keys are compromised, the SIAR network can perform a "post-compromise security" update, mathematically evicting the compromised node from the group and generating a new epoch of encryption keys. The identity of the network survives; the compromised node is simply left in the dark. Chapter 3: Zero Central Dependencies – The Architecture of the Void The second core philosophy of SIAR is Zero Central Dependencies. This is the most radical departure from modern software engineering. For the past two decades, developers have been trained to build applications that are essentially thin clients for cloud databases. We build front-ends that fetch JSON payloads from REST APIs hosted on Amazon Web Services or Google Cloud. We rely on cloud-hosted TURN/STUN servers to punch holes through NAT firewalls for WebRTC connections. We rely on centralized push-notification services (like Firebase Cloud Messaging or Apple Push Notification Service) to wake up sleeping devices. SIAR strips all of this away. It operates in the void. The Myth of the Server In the SIAR architecture, there is no "SIAR Server." There is no central database of users. There is no master routing table. There are no cloud relays. The business logic, the cryptography, the routing algorithms, and the networking protocols are entirely unified within the pure-Rust core crates that run locally on the user's device. Why is this necessary? Because centralized dependencies are single points of failure. If a natural disaster severs the fiber-optic backbone connecting a city to the rest of the world, any application relying on a server outside that city becomes useless. SIAR's zero-infrastructure design ensures that the application functions better when the internet dies, not worse. Bypassing the Gatekeepers Without centralized servers, how do devices find each other? How do they know who is online? SIAR relies on Multi-Transport Opportunistic Discovery. Instead of asking a central server "Is Alice online?", a SIAR device constantly broadcasts encrypted, anonymized beacons across every available physical radio interface. It listens to the airwaves. When another SIAR device hears a beacon, it initiates a local handshake. This approach completely bypasses the gatekeepers of the modern internet. It does not require DNS, because there are no domain names to resolve. It does not require TLS certificate authorities, because trust is established via direct, out-of-band QR code scanning or local mesh consensus. It does not require app store approval or push-notification daemons, because SIAR manages its own wake-locks and background processing through native OS integrations. This philosophy extends to the very code that powers SIAR. The Android application uses Kotlin exclusively for the UI layer, keeping the UI responsive and native, while the heavy lifting is done by the Rust core via JNI (Java Native Interface). The Desktop application uses Dioxus, a Rust-native UI framework, ensuring that the same core logic runs identically on Linux, Windows, and macOS. This cross-platform parity ensures that a survival scenario is not dependent on a specific operating system ecosystem. Chapter 4: The "A" – Autonomous Routing and the Labyrinth of the Airwaves If Survivable Identity is the soul of SIAR, then Autonomous Routing is its nervous system. How does a message travel from Point A to Point B when there is no continuous wire connecting them? The Failure of TCP/IP in the Wild The modern internet is built on the TCP/IP protocol suite. TCP (Transmission Control Protocol) is a "connected" protocol. It requires a continuous, unbroken, bidirectional pipe between the sender and the receiver. If you send a SYN packet, you expect a SYN-ACK within milliseconds. If a router in the middle drops a packet, TCP detects the gap, halts the transmission, and demands a retransmission. TCP is a masterpiece of engineering for a stable, wired world. But in a disaster zone, the world is not stable. Radios fade in and out as people move through concrete ruins. Battery-powered nodes die and are replaced. Frequencies become congested. In this environment, TCP collapses under its own weight. The timeouts trigger, the retransmissions flood the airwaves, and the network experiences a "congestion collapse." SIAR abandons the strict requirements of TCP for its mesh layer and instead embraces Delay-Tolerant Networking (DTN). Store-Carry-Forward: The Digital Pony Express The core paradigm of SIAR's autonomous routing is Store-Carry-Forward. Imagine the internet not as a series of instantaneous pipes, but as the 18th-century postal system. When you send a message on SIAR, the message is encrypted, bundled into a cryptographically signed packet, and handed to your device's local routing engine. Your device then looks for any available physical transport to offload this bundle. Opportunistic Transports: SIAR dynamically switches between Bluetooth Low Energy (BLE) for low-power proximity, Bluetooth Classic for slightly higher bandwidth, Wi-Fi Direct for high-speed peer-to-peer transfers without an access point, Wi-Fi Aware for neighborhood discovery, local LAN, and Internet QUIC endpoints if a bridge to the outside world is found. The Hand-off: If your device cannot reach the final destination, it hands the bundle to a passing node—a friend walking by, a vehicle driving past, or a headless repeater. The Carry: That intermediate node stores the encrypted bundle in its local DTN buffer and carries it physically to a new location. The Forward: When the intermediate node comes into contact with another SIAR node that is closer to the destination (or is the destination itself), it forwards the bundle. This means a message can traverse a destroyed city without ever touching the internet. A message can be passed from a smartphone in a basement, to a rescue worker's radio, to a drone flying overhead, to a solar-powered repeater on a hill, and finally to the recipient on the other side of the disaster zone. The routing is entirely autonomous. There is no central dispatcher telling the packets where to go. Each node makes independent, localized decisions based on the topology of the mesh it currently perceives. The Mathematics of the Mesh The routing engine within the Rust core utilizes advanced graph theory and epidemic routing algorithms tailored for resource-constrained devices. It must balance the urgency of the message against the battery life of the node. It must deduplicate packets so that the same message isn't broadcast infinitely, causing a broadcast storm. It must prioritize emergency beacons over casual text messages. This autonomous routing is what makes SIAR a true "survival" tool. It assumes the network is broken, intermittent, and hostile, and it routes around the damage like water flowing around stones. Chapter 5: The "R" – The Rust-First Crusade To build a system capable of surviving the end of the world, one cannot rely on fragile foundations. The "R" in SIAR stands for Routing, but it also represents the bedrock of the entire project: Rust. The Perils of C and C++ Historically, high-performance networking and cryptography were written in C and C++. These languages offer ultimate control over hardware and memory, but they come with a terrible cost: memory unsafety. Buffer overflows, use-after-free errors, and dangling pointers have been the root cause of the vast majority of critical security vulnerabilities in networking software for the past thirty years. In a standard consumer application, a memory leak might cause the app to crash, requiring the user to restart it. In a survival scenario, a crashed messenger means a lost coordinate, a missed medical request, or a lost life. There is no "customer support" to call when the grid is down. The Rust Guarantee SIAR is engineered with a Rust-First Primary Core. Every single line of business logic, cryptographic implementation, routing algorithm, and network state machine is written in pure Rust. Rust provides a mathematical guarantee of memory safety without the need for a garbage collector. The Rust borrow checker ensures at compile-time that data races and memory corruptions are impossible. This is critical for a multi-transport mesh network, where dozens of asynchronous threads are simultaneously managing Bluetooth sockets, Wi-Fi Direct handshakes, and cryptographic ratchets. Furthermore, Rust's zero-cost abstractions mean that SIAR can run on high-end smartphones and low-power embedded hardware with equal efficiency. The pure-Rust DSP (Digital Signal Processing) and native hardware codec acceleration ensure that voice and media can be processed efficiently without draining the battery of a device that might not see a wall charger for weeks. Cryptographic Autonomy The Rust core also implements the highest standards of modern cryptography. Beyond the Ed25519 and X25519 keys used for identity, SIAR utilizes OpenMLS for group communications. OpenMLS is an IETF-standardized protocol designed specifically for large, asynchronous groups. In a traditional mesh network, adding or removing a user requires re-keying the entire group, which generates massive amounts of network traffic—traffic that a fragile, low-bandwidth mesh cannot handle. OpenMLS uses a tree-based structure that allows users to be added or removed with logarithmic efficiency. Moreover, SIAR enforces Forward Secrecy and Post-Compromise Security. If an adversary captures a SIAR node and extracts its current memory state, they cannot decrypt the messages sent yesterday. And because of the cryptographic ratcheting mechanism, they cannot decrypt the messages that will be sent tomorrow. The identity and the conversation remain mathematically autonomous, surviving even the physical capture of the device. Chapter 6: The Emergency Node – Lighthouses in the Dark A mesh network is only as strong as its density. If everyone is trapped in their homes with thick concrete walls, Bluetooth and Wi-Fi Direct signals will not penetrate far enough to maintain a cohesive network. The mesh will fracture into isolated islands of connectivity. To solve this, SIAR introduces a second deployment mode: the Headless Off-Grid Repeater & Signal Booster Daemon, known as the siar-emergency-node. The Philosophy of the Repeater The siar-emergency-node is a stripped-down, headless version of the SIAR core designed to run continuously on low-power, embedded hardware. It has no graphical user interface. It has no keyboard. It is a silent guardian, a digital lighthouse planted in the physical world. Imagine a Raspberry Pi, a repurposed embedded router, or a custom solar-powered field node strapped to the roof of a community center, a water tower, or a mountain peak. This node runs the siar-emergency-node daemon. It acts as a massive DTN buffer and a multi-transport bridge. Store, Carry, and Boost When a localized internet blackout occurs, the community deploys these emergency nodes. The Bridge: The node uses its high-gain antennas to listen for faint BLE and Wi-Fi signals from the smartphones of survivors in the surrounding area. The Store: It receives encrypted bundles from the survivors and stores them in its massive local DTN buffer. The Boost: If the emergency node has a line-of-sight to another emergency node miles away (perhaps using long-range LoRa or directional Wi-Fi), it acts as a signal booster, bridging the gap between two disconnected neighborhoods. The Forward: When the internet is eventually restored to a single point in the city, the emergency nodes will autonomously detect this QUIC endpoint and flush their DTN buffers, forwarding thousands of delayed messages to the outside world in a massive, coordinated burst. The siar-emergency-node embodies the concept of the Siar tree. It is planted in the community, it requires minimal maintenance (especially when paired with solar panels), and it provides the essential "shade" of communication when the environment becomes hostile. It allows the SIAR network to scale from a personal peer-to-peer tool into a municipal-grade disaster response infrastructure. Chapter 7: The Hardware Reality – Native Integration Software does not exist in a vacuum; it must interact with the physical laws of radio frequencies and silicon. A major differentiator for SIAR is its deep, native integration with hardware codecs and platform-specific APIs. The Android Advantage While the core is Rust, the Android application leverages Kotlin to interface deeply with the Android operating system. Modern messaging apps often rely on WebRTC for voice and video, which is a heavy, browser-derived technology that struggles with the strict power and thermal limits of mobile devices in survival situations. SIAR utilizes native Android MediaCodec APIs. This allows the application to directly access the hardware encoders and decoders on the device's System-on-Chip (SoC). Combined with pure-Rust DSP algorithms for audio filtering and noise cancellation, SIAR can transmit crystal-clear voice data over incredibly narrow, low-bandwidth mesh links that would choke a standard WebRTC stream. Furthermore, SIAR deeply integrates with Android's Wi-Fi Aware and Wi-Fi Direct APIs. Wi-Fi Aware allows devices to discover each other and maintain persistent connections without requiring a central Wi-Fi Access Point or consuming the massive amounts of battery power required to keep a Wi-Fi hotspot active. SIAR manages these radios intelligently, spinning them up only when opportunistic routing algorithms predict a high probability of a successful node encounter, and spinning them down to conserve precious milliamp-hours. The Desktop and CLI Experience Not all survival scenarios involve mobile devices. A ham radio operator in a bunker, a logistics coordinator in an emergency operations center, or a sysadmin trying to restore a local network will rely on desktop environments. SIAR provides a Dioxus Desktop GUI for Linux and Windows, bringing the full power of the mesh network to the desktop environment. Dioxus, being a Rust-native UI framework, ensures that the desktop application is incredibly lightweight, consuming minimal RAM and CPU cycles—resources that may be severely limited if the desktop is running on a UPS (Uninterruptible Power Supply) or a portable solar generator. For the hardcore survivalist, the prepper, and the Linux purist, there is siar-cli. The Terminal Messenger allows users to send encrypted text, manage cryptographic keys, and monitor the DTN buffer queue entirely from the command line. It is the ultimate expression of zero-infrastructure computing: no mouse, no graphics, just pure, unadulterated communication over the mesh. Chapter 8: A Philosophy for the Future – SIAR vs. The Giants To fully appreciate the story of SIAR, one must contrast it with the titans of the industry: Signal, WhatsApp, Telegram, and Apple. These platforms are marvels of convenience. They have connected billions of people. But they are fundamentally client-server architectures. They are designed for a world where the server is always online, the user always has a 5G connection, and the power never fails. Feature The Giants (Signal/WhatsApp) SIAR (Survivable Identity & Autonomous Routing) Philosophy Convenience and Scale Resilience and Autonomy Server Requirement Mandatory Central Cloud Servers None (Fully Autonomous P2P / Mesh) Offline Operation Unusable without Internet Native (BLE, Wi-Fi Direct/Aware, DTN) Addressing Phone Numbers / Cloud User IDs Self-sovereign Peer Tickets / Ed25519 Keys Routing ISP and Cloud Provider dependent Multi-transport opportunistic Store-Carry-Forward Hardware Utilization WebRTC / Platform C-libs Native MediaCodec + pure-Rust DSP Group Security Custom Signal Protocol / Server-managed OpenMLS (Forward Secrecy + Post-Compromise) The Giants view the network as a utility provided by the corporation. SIAR views the network as an emergent property of the people holding the devices. When you use a traditional messenger, you are renting space on a corporate server. When you use SIAR, you are the network. You are the router, the server, and the vault. This shift in perspective—from consumer to node—is the true revolution of SIAR. It requires a slight trade-off in user experience (the UI must explain concepts like mesh density and DTN buffers), but it provides an absolute guarantee of communication that no centralized service can ever promise. Chapter 9: The Ethics of the Off-Grid With great power comes great responsibility. A decentralized, encrypted, untraceable mesh network is a tool of immense power. It is the ultimate shield for the oppressed, the journalist, the activist, and the victim of domestic abuse. It allows communities to organize without fear of state surveillance or corporate data harvesting. But it is also a tool that operates outside the bounds of traditional moderation. Because SIAR has no central servers, there is no central authority to ban users, delete messages, or comply with government subpoenas. The network is mathematically neutral. The story of SIAR is deeply intertwined with the ethics of cryptography. The developers of SIAR believe that the right to private, survivable communication supersedes the convenience of centralized moderation. In a world where authoritarian regimes routinely shut down the internet to suppress dissent, and where natural disasters routinely sever the lifelines of vulnerable populations, the existence of a tool like SIAR is a moral imperative. The name Siar—the tree of freedom, the journey back to the roots—serves as a constant reminder of this ethical burden. The technology is built to protect the vulnerable from the collapse of the systems meant to protect them. It is a digital sanctuary, built of math and radio waves. Chapter 10: The Roadmap to the Horizon The story of SIAR is not finished; it is merely beginning. The repository at github.com/irshadali5/siar is a living, breathing ecosystem. The future roadmap of SIAR involves pushing the boundaries of Delay-Tolerant Networking even further. Plans include integrating LoRa (Long Range) radio protocols for low-bandwidth, multi-mile text transmissions, allowing SIAR nodes to communicate across vast rural distances where Wi-Fi and Bluetooth cannot reach. There are explorations into integrating satellite mesh protocols, preparing for a future where low-earth orbit satellite constellations might serve as the ultimate siar-emergency-nodes, bouncing DTN bundles across the curvature of the Earth. Furthermore, the integration of AI-driven routing algorithms is on the horizon. Imagine a Rust core that utilizes lightweight machine learning to predict human movement patterns, pre-positioning encrypted bundles in the DTN buffers of nodes that are likely to travel toward the destination, optimizing the Store-Carry-Forward paradigm to near-instantaneous levels. But no matter how advanced the technology becomes, the core philosophy will remain untouched. Zero central dependencies. Survivable identity. Autonomous routing. Epilogue: The Lighthouse at the End of the World Let us return to the scenario that started it all. The lights have gone out. The cell towers are dead. The screens of the billions are dark. Panic begins to set in as the realization of isolation takes hold. But in the darkness, a small light blinks. A Raspberry Pi, strapped to the roof of a community center, powered by a single solar panel, boots up. The siar-emergency-node daemon initializes. It broadcasts a silent, encrypted beacon over Wi-Fi Aware. A mile away, a survivor pulls out their phone. The Android Jetpack Compose UI lights up. The pure-Rust core detects the beacon. It generates a DeviceIdentity, performs a cryptographic handshake, and pushes a single, encrypted text message into the DTN buffer. "I am safe. I am at the shelter." The message is handed to the airwaves. It bounces from phone to phone, carried by pedestrians walking through the dark, boosted by the silent Siar trees planted on the rooftops, crossing the physical gaps of a broken city. It requires no servers in Virginia. It requires no DNS. It requires only the math, the radios, and the will of the people to connect. The message arrives. A screen lights up in the dark. A breath is exhaled. This is the promise of SIAR. It is more than a repository of Rust code. It is a story of survival. It is the digital manifestation of the ancient word síar—the journey into the wild, and the journey back to each other. When the world ends, the network begins. Appendix: Technical Glossary & Core Concepts To fully appreciate the depth of the SIAR architecture, one must understand the specific technologies that power its Survivable Identity and Autonomous Routing. This appendix serves as a technical companion to the lore. The Rust Core Architecture The SIAR core is divided into several modular crates, ensuring that the heavy cryptographic and networking logic can be compiled for any target, from an ARM-based Android phone to an x86 Linux server. siar-crypto: Handles all Ed25519 signatures, X25519 key exchanges, and the OpenMLS ratchet tree management. It relies on audited, pure-Rust cryptographic libraries to prevent side-channel attacks. siar-dtn: The heart of the Delay-Tolerant Networking engine. It manages the Bundle Protocol, the custody transfer logic, and the prioritization queues for outgoing messages. siar-transport: An abstraction layer that manages the physical radios. It implements the state machines for Wi-Fi Direct, Wi-Fi Aware, BLE GATT servers/clients, and QUIC over UDP. OpenMLS (Messaging Layer Security) Traditional end-to-end encryption (like the Signal Protocol) is designed for 1-to-1 communication. When adapted for groups, it requires the sender to encrypt the message N times, once for every member of the group. In a mesh network where a group might consist of 500 people in a disaster zone, this is computationally and bandwidth-prohibitive. OpenMLS solves this via a continuous group key agreement. It uses a tree structure where users only need to perform cryptographic operations proportional to the logarithm of the group size. This allows SIAR to support massive, ad-hoc groups in a mesh environment without draining device batteries or clogging the RF spectrum. Wi-Fi Aware vs. Wi-Fi Direct Many users confuse these two technologies, but SIAR leverages both for different phases of autonomous routing. Wi-Fi Aware (Neighbor Awareness Networking - NAN): This is a low-power protocol that allows devices to discover each other's presence and services without forming a full network connection. SIAR uses Wi-Fi Aware to constantly scan the environment for other SIAR nodes. It is the "radar" of the mesh. Wi-Fi Direct: Once a node is discovered via Wi-Fi Aware, SIAR negotiates a Wi-Fi Direct connection. This creates a high-bandwidth, peer-to-peer Wi-Fi network between the two devices, allowing for the rapid transfer of large DTN bundles, voice data, or images. The QUIC Bridge While SIAR is designed to operate entirely without the internet, it is not opposed to using it when available. The QUIC protocol is utilized when a SIAR node detects an active internet connection. QUIC, built on UDP, is highly resistant to network switching and latency. If a node moves from a dead zone into an area with a faint cellular signal, SIAR can use QUIC to instantly flush its DTN buffers to any known internet-connected SIAR relay, bridging the gap between the offline mesh and the global internet. Headless Daemon Operations (siar-emergency-node) The headless daemon is designed for extreme resource efficiency. It operates without a GUI, logging its operations to local rotating text files. It utilizes systemd (on Linux) or equivalent background service managers to ensure that if the device reboots due to a power fluctuation, the SIAR node immediately resumes its Store-Carry-Forward operations without human intervention. It is the ultimate "set it and forget it" survival tool. The Final Word The creation of SIAR is a testament to the belief that technology should serve humanity's most fundamental needs, especially when the veneer of civilization cracks. It is a rejection of the fragile, centralized web in favor of a resilient, decentralized mesh. It is the westward journey. It is the return to our roots. It is the tree of freedom. Survivable Identity & Autonomous Routing. SIAR. If you are a developer, a prepper, a cryptographer, or simply a believer in the fundamental right to communicate, the repository is open. The code is Rust. The airwaves are waiting. Repository: https://github.com/irshadali5/siar Core Philosophy: Rust-First, Zero-Infrastructure, Off-Grid DTN. Status: Active Development. Building the lighthouses for the dark. End of Document.
This is a summary aggregated from Dev.to. Read the complete article on the original site:
Read full article at Dev.to