From e6785233c5d1dde24d82e67878c9f5c5a80ae414 Mon Sep 17 00:00:00 2001 From: Sirius DevOps Date: Thu, 10 Sep 2026 01:02:33 -0400 Subject: [PATCH] Initial Cargo bin scaffold Empty onionwire crate so cargo build succeeds. Identity is pubkey; onion is locator. No XMPP. M0 Arti spike is not in this commit. --- .gitignore | 1 + Cargo.lock | 7 +++++++ Cargo.toml | 9 +++++++++ LICENSE | 21 +++++++++++++++++++++ README.md | 17 +++++++++++++++++ src/main.rs | 3 +++ 6 files changed, 58 insertions(+) create mode 100644 .gitignore create mode 100644 Cargo.lock create mode 100644 Cargo.toml create mode 100644 LICENSE create mode 100644 README.md create mode 100644 src/main.rs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..a3ed3d4 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "onionwire" +version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..b54ba97 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "onionwire" +version = "0.1.0" +edition = "2024" +description = "Lean Tor messenger: Arti in-process, identity=pubkey, onion=locator. No XMPP." +license = "MIT" +publish = false + +[dependencies] diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f22f6f7 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Lance Walters + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..57b358a --- /dev/null +++ b/README.md @@ -0,0 +1,17 @@ +# OnionWire + +Lean Tor messenger: one Rust process (ratatui + E2EE + sqlite + in-process Arti). +Two people scan a QR, then chat. No hosted server. + +## Locked model + +- **Identity = ed25519 public key.** Friends are `UNIQUE(pubkey)`. +- **Onion = locator only.** It can change. Never treat `.onion` as the roster key. +- **F4 rotates the onion** (confirm by typing `ROTATE`). Same identity key. Offline friends need a QR rescan. +- **No XMPP, no Prosody, no s2s, no C-tor binary, no DHT, no outbox in v1.** + +Plan of record: `/home/lancelot/.hermes/plans/2026-09-10_004409-onionwire-lean.md` + +## License + +MIT diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}