mirror of
https://github.com/exo-explore/exo.git
synced 2025-12-23 22:27:50 -05:00
print secret key
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use iroh::SecretKey;
|
||||
use iroh::{SecretKey, endpoint_info::EndpointIdExt};
|
||||
use iroh_networking::ExoNet;
|
||||
use n0_future::StreamExt;
|
||||
|
||||
@@ -9,9 +9,10 @@ async fn main() {
|
||||
.with_env_filter(tracing_subscriber::EnvFilter::from_default_env())
|
||||
.init();
|
||||
|
||||
let net = ExoNet::init_iroh(SecretKey::generate(&mut rand::rng()), "")
|
||||
.await
|
||||
.unwrap();
|
||||
let key = SecretKey::generate(&mut rand::rng());
|
||||
let dbg_key = key.public().to_z32();
|
||||
println!("Starting with pk: {dbg_key}");
|
||||
let net = ExoNet::init_iroh(key, "").await.unwrap();
|
||||
|
||||
let mut conn_info = net.connection_info().await;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user