onionwire/src/main.rs

20 lines
570 B
Rust
Raw Normal View History

fn main() {
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);
}
}
}