From f892efc0ac238b32ece43a71cca93f8b5b14f5b0 Mon Sep 17 00:00:00 2001 From: Daniel Karzel Date: Fri, 25 Jun 2021 17:51:29 +1000 Subject: [PATCH] generate onion address --- libp2p-tor/examples/listener.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/libp2p-tor/examples/listener.rs b/libp2p-tor/examples/listener.rs index 144afbd5..c5216e39 100644 --- a/libp2p-tor/examples/listener.rs +++ b/libp2p-tor/examples/listener.rs @@ -129,13 +129,7 @@ async fn new_swarm(client: AuthenticatedConn TorSecretKeyV3 { - let fixed_onion_bytes = [ - 6, 164, 217, 80, 139, 239, 11, 110, 37, 77, 191, 158, 206, 252, 178, 188, 147, 98, 54, 13, - 35, 183, 114, 231, 202, 38, 30, 29, 245, 8, 118, 153, 55, 141, 228, 109, 78, 189, 120, 28, - 172, 131, 198, 55, 113, 47, 10, 135, 139, 117, 182, 195, 46, 34, 234, 169, 85, 96, 203, - 215, 7, 155, 209, 211, - ]; - fixed_onion_bytes.into() + TorSecretKeyV3::generate() } fn fixed_libp2p_identity() -> Keypair {