19 lines
570 B
Rust
19 lines
570 B
Rust
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);
|
|
}
|
|
}
|
|
}
|