[verified] Add F4 onion locator rotate with signed loc frames.

Identity key stays put. Typing ROTATE publishes a new Arti HS, hard-cuts
the old nickname, persists self.onion, and pushes loc to reachable friends.
This commit is contained in:
Sirius DevOps 2026-09-10 02:43:45 -04:00
commit 07aa97711c
No known key found for this signature in database
8 changed files with 743 additions and 87 deletions

View file

@ -1,14 +1,17 @@
fn main() {
match onionwire::Store::open() {
Ok(store) => {
if let Err(e) = onionwire::tui::run(store) {
eprintln!("onionwire: {e}");
std::process::exit(1);
}
}
Err(e) => {
eprintln!("onionwire: {e}");
std::process::exit(1);
}
#[tokio::main]
async fn main() {
if let Err(e) = boot().await {
eprintln!("onionwire: {e}");
std::process::exit(1);
}
}
async fn boot() -> Result<(), String> {
let home = onionwire::Store::home_dir().map_err(|e| e.to_string())?;
eprintln!("onionwire: bootstrapping Arti…");
let node = onionwire::node::Node::start(home).await?;
let handle = tokio::runtime::Handle::current();
tokio::task::spawn_blocking(move || onionwire::tui::run(node, handle))
.await
.map_err(|e| e.to_string())?
}