Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(examples): add rendezvous point fixed keypair #4646

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion examples/rendezvous/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ use std::time::Duration;
async fn main() -> Result<(), Box<dyn Error>> {
env_logger::init();

let mut swarm = libp2p::SwarmBuilder::with_new_identity()
let keypair = libp2p::identity::Keypair::ed25519_from_bytes([0; 32]).unwrap();
thomaseizinger marked this conversation as resolved.
Show resolved Hide resolved

let mut swarm = libp2p::SwarmBuilder::with_existing_identity(keypair)
.with_tokio()
.with_tcp(
tcp::Config::default(),
Expand Down