[verified] Add sqlite store and first-run identity.

Friends are UNIQUE(pubkey); onion is a locator. Honor ONIONWIRE_HOME.
This commit is contained in:
Sirius DevOps 2026-09-10 01:43:02 -04:00
commit 0a0dd3a8d8
No known key found for this signature in database
6 changed files with 349 additions and 42 deletions

View file

@ -1,3 +1,19 @@
fn main() {
println!("Hello, world!");
match onionwire::Store::open() {
Ok(store) => match store.self_identity() {
Ok(me) => {
let fp: String = me.identity_pk.iter().map(|b| format!("{b:02x}")).collect();
println!("onionwire ready");
println!("fingerprint {fp}");
}
Err(e) => {
eprintln!("onionwire: {e}");
std::process::exit(1);
}
},
Err(e) => {
eprintln!("onionwire: {e}");
std::process::exit(1);
}
}
}